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.

99 lines
3.5 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_CONNECT_TIMEOUT ((LONG)(1 * 60 * 1000)) // 1 minute
  17. #define DEFAULT_CONNECT_RETRIES 5
  18. #ifndef unix
  19. #define DEFAULT_SEND_TIMEOUT ((LONG)(5 * 60 * 1000)) // 5 minutes
  20. #define DEFAULT_RECEIVE_TIMEOUT ((LONG)(60 * 60 * 1000)) // 60 minutes
  21. #define DEFAULT_FTP_ACCEPT_TIMEOUT ((LONG)(5 * 60 * 1000)) // 5 minutes
  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. #define DEFAULT_FTP_ACCEPT_TIMEOUT ((LONG)(1 * 60 * 1000)) // 1 minutes
  26. #endif /* unix */
  27. #define DEFAULT_KEEP_ALIVE_TIMEOUT (1 * 60 * 1000) // 1 minute
  28. #define DEFAULT_FROM_CACHE_TIMEOUT (5 * 1000) // 5 seconds
  29. #define DEFAULT_DNS_CACHE_ENTRIES 32
  30. #define DEFAULT_DNS_CACHE_TIMEOUT (30 * 60) // 30 minutes
  31. #define DEFAULT_MAX_HTTP_REDIRECTS 100
  32. // JMH - BUGBUG max connections raised for beta 2, should be reset in RC1 to 2
  33. #define DEFAULT_MAX_CONNECTIONS_PER_SERVER 2 // default HTTP 1.1
  34. // #define DEFAULT_MAX_CONNECTIONS_PER_SERVER 4 // default HTTP 1.1 raised for Beta 2 only
  35. #define DEFAULT_MAX_CONS_PER_1_0_SERVER 4 // default HTTP 1.0
  36. #define DEFAULT_CONNECTION_LIMIT_TIMEOUT (1 * 60 * 1000) // 1 minute
  37. #define DEFAULT_CONNECTION_INACTIVE_TIMEOUT (10 * 1000) // 10 seconds
  38. #define DEFAULT_SERVER_INFO_TIMEOUT (2 * 60 * 1000) // 2 minutes
  39. #define DEFAULT_NETWORK_OFFLINE_TIMEOUT (5 * 1000) // 5 seconds
  40. #define DEFAULT_DIAL_UP_OFFLINE_TIMEOUT (20 * 1000) // 20 seconds
  41. #define DEFAULT_IDLE_TIMEOUT 1000 // 1 second
  42. #define DEFAULT_NETWORK_PING_RETRIES 1
  43. #define DEFAULT_DIAL_UP_PING_RETRIES 4
  44. //
  45. // thread pool default constants
  46. //
  47. #define DEFAULT_MINIMUM_THREADS 0
  48. #define DEFAULT_MAXIMUM_THREADS 4 // arbitrary
  49. #define DEFAULT_INITIAL_THREADS 1
  50. #define DEFAULT_THREAD_IDLE_TIMEOUT (2 * 60 * 1000) // 2 minutes
  51. #define DEFAULT_WORK_QUEUE_LIMIT 8
  52. #define DEFAULT_WORK_ITEM_PRIORITY 0
  53. //
  54. // async scheduler thread default constants
  55. //
  56. #define DEFAULT_WORKER_THREAD_TIMEOUT (2 * 60 * 1000) // 2 minutes
  57. #define DEFAULT_MAXIMUM_QUEUE_DEPTH 2
  58. #define DEFAULT_FIBER_STACK_SIZE (16 K)
  59. #define DEFAULT_CREATE_FIBER_ATTEMPTS 4
  60. //
  61. // default sizes
  62. //
  63. #define DEFAULT_RECEIVE_BUFFER_INCREMENT (1 K)
  64. #define DEFAULT_TRANSPORT_PACKET_LENGTH (1 K)
  65. #define DEFAULT_HTML_QUERY_BUFFER_LENGTH (4 K)
  66. #define DEFAULT_SOCKET_SEND_BUFFER_LENGTH ((DWORD)-1)
  67. #define DEFAULT_SOCKET_RECEIVE_BUFFER_LENGTH ((DWORD)-1)
  68. #define DEFAULT_SOCKET_QUERY_BUFFER_LENGTH (8 K)
  69. //
  70. // default strings
  71. //
  72. #define DEFAULT_HTTP_REQUEST_VERB "GET"
  73. #define DEFAULT_EMAIL_NAME "user@domain"
  74. #define DEFAULT_URL_SCHEME_NAME "http"
  75. // default SSL protocols
  76. #define DEFAULT_SECURE_PROTOCOLS (SP_PROT_SSL2_CLIENT | SP_PROT_SSL3_CLIENT)