Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

94 lines
3.2 KiB

  1. /*++
  2. Copyright (c) 1995 Microsoft Corporation
  3. Module Name:
  4. defaults.h
  5. Abstract:
  6. Contains all default manifests for WININET
  7. Author:
  8. Richard L Firth (rfirth) 15-Jul-1995
  9. Revision History:
  10. 15-Jul-1995 rfirth
  11. Created
  12. --*/
  13. //
  14. // default timeout values and retry counts
  15. //
  16. #define DEFAULT_RESOLVE_TIMEOUT INFINITE
  17. #define DEFAULT_CONNECT_TIMEOUT ((LONG)1*60*1000) // 1 minute
  18. #define DEFAULT_CONNECT_RETRIES 5
  19. #ifndef unix
  20. #define DEFAULT_SEND_TIMEOUT ((LONG)30*1000) // 30 seconds
  21. #define DEFAULT_RECEIVE_TIMEOUT ((LONG)30*1000) // 30 seconds
  22. #else
  23. #define DEFAULT_SEND_TIMEOUT ((LONG)(1 * 60 * 1000)) // 1 minutes
  24. #define DEFAULT_RECEIVE_TIMEOUT ((LONG)(1 * 60 * 1000)) // 1 minutes
  25. #endif /* unix */
  26. #define DEFAULT_KEEP_ALIVE_TIMEOUT (1 * 60 * 1000) // 1 minute
  27. #define DEFAULT_FROM_CACHE_TIMEOUT (5 * 1000) // 5 seconds
  28. #define DEFAULT_DNS_CACHE_ENTRIES 32
  29. #define DEFAULT_DNS_CACHE_TIMEOUT (30 * 60) // 30 minutes
  30. #define DEFAULT_MAX_HTTP_REDIRECTS 100
  31. #define DEFAULT_MAX_CONNECTIONS_PER_SERVER 2 // default HTTP 1.1
  32. #define DEFAULT_MAX_CONS_PER_1_0_SERVER 4 // default HTTP 1.0
  33. #define DEFAULT_CONNECTION_LIMIT_TIMEOUT (1 * 60 * 1000) // 1 minute
  34. #define DEFAULT_CONNECTION_INACTIVE_TIMEOUT (10 * 1000) // 10 seconds
  35. #define DEFAULT_SERVER_INFO_TIMEOUT (2 * 60 * 1000) // 2 minutes
  36. #define DEFAULT_NETWORK_OFFLINE_TIMEOUT (5 * 1000) // 5 seconds
  37. #define DEFAULT_DIAL_UP_OFFLINE_TIMEOUT (20 * 1000) // 20 seconds
  38. #define DEFAULT_IDLE_TIMEOUT 1000 // 1 second
  39. #define DEFAULT_NETWORK_PING_RETRIES 1
  40. #define DEFAULT_DIAL_UP_PING_RETRIES 4
  41. //
  42. // thread pool default constants
  43. //
  44. #define DEFAULT_MINIMUM_THREADS 0
  45. #define DEFAULT_MAXIMUM_THREADS 4 // arbitrary
  46. #define DEFAULT_INITIAL_THREADS 1
  47. #define DEFAULT_THREAD_IDLE_TIMEOUT (2 * 60 * 1000) // 2 minutes
  48. #define DEFAULT_WORK_QUEUE_LIMIT 8
  49. #define DEFAULT_WORK_ITEM_PRIORITY 0
  50. //
  51. // async scheduler thread default constants
  52. //
  53. #define DEFAULT_WORKER_THREAD_TIMEOUT (2 * 60 * 1000) // 2 minutes
  54. #define DEFAULT_MAXIMUM_QUEUE_DEPTH 2
  55. #define DEFAULT_FIBER_STACK_SIZE (16 K)
  56. #define DEFAULT_CREATE_FIBER_ATTEMPTS 4
  57. //
  58. // default sizes
  59. //
  60. #define DEFAULT_RECEIVE_BUFFER_INCREMENT (1 K)
  61. #define DEFAULT_TRANSPORT_PACKET_LENGTH (1 K)
  62. #define DEFAULT_HTML_QUERY_BUFFER_LENGTH (4 K)
  63. #define DEFAULT_SOCKET_SEND_BUFFER_LENGTH ((DWORD)-1)
  64. #define DEFAULT_SOCKET_RECEIVE_BUFFER_LENGTH ((DWORD)-1)
  65. #define DEFAULT_SOCKET_QUERY_BUFFER_LENGTH (8 K)
  66. //
  67. // default strings
  68. //
  69. #define DEFAULT_HTTP_REQUEST_VERB "GET"
  70. #define DEFAULT_EMAIL_NAME "user@domain"
  71. #define DEFAULT_URL_SCHEME_NAME "http"
  72. // default SSL protocols
  73. #define DEFAULT_SECURE_PROTOCOLS (SP_PROT_SSL2_CLIENT | SP_PROT_SSL3_CLIENT)