Skip to content

HttpClient ConnectTimeout is not respected #154

@jarruda

Description

@jarruda

A request configured with a connect timeout of 1000ms takes at least 21 seconds to return.

RetryStrategy was set to nullptr.

[INFO] 2016-04-08 13:14:47 WinHttpSyncHttpClient [15408] Creating http client with user agent aws-sdk-cpp/0.9.6-56-g3fe46f0 Windows/6.1.7601-Service Pack 1 AMD64 with max connections 25 request timeout 3000,and connect timeout 1000
[DEBUG] 2016-04-08 13:14:47 WinHttpSyncHttpClient [15408] API handle 0000000002D2FE90.
[INFO] 2016-04-08 13:14:47 ConnectionPoolMgr [15408] Creating connection pool mgr with handle 0000000002D2FE90, and max connections per host 25, request timeout 3000 ms, and connect timeout in 1000 ms.
[TRACE] 2016-04-08 13:14:47 WinHttpSyncHttpClient [15408] Making GET request to uri xxxx
[INFO] 2016-04-08 13:14:47 WinHttpConnectionPoolMgr [15408] Attempting to aquire connection for xxxx
[DEBUG] 2016-04-08 13:14:47 WinHttpConnectionPoolMgr [15408] Pool doesn't exist for endpoint, creating...
[DEBUG] 2016-04-08 13:14:47 WinHttpConnectionPoolMgr [15408] Pool has no available existing connections for endpoint, attempting to grow pool.
[DEBUG] 2016-04-08 13:14:47 WinHttpConnectionPoolMgr [15408] Returning connection handle 0000000004C64210.
[DEBUG] 2016-04-08 13:14:47 WinHttpSyncHttpClient [15408] Acquired connection 0000000004C64210
[DEBUG] 2016-04-08 13:14:47 WinHttpSyncHttpClient [15408] AllocateWindowsHttpRequest returned handle 0000000004C64360
[DEBUG] 2016-04-08 13:14:47 WinHttpSyncHttpClient [15408] with headers:
[DEBUG] 2016-04-08 13:14:47 WinHttpSyncHttpClient [15408] host: xxxx
[WARN] 2016-04-08 13:15:08 WinHttpSyncHttpClient [15408] Send request failed: The operation timed out

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions