Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .changelog/e8481985f9794c4082447339c1d71a63.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"id": "e8481985-f979-4c40-8244-7339c1d71a63",
"type": "feature",
"description": "The default value of MaxConnsPerHost in HTTP clients created by the SDK is now 2048, down from unlimited. See #3243.",
"modules": [
"."
]
}
2 changes: 2 additions & 0 deletions aws/transport/http/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ var (
// Default connection pool options
DefaultHTTPTransportMaxIdleConns = 100
DefaultHTTPTransportMaxIdleConnsPerHost = 10
DefaultHTTPTransportMaxConnsPerHost = 2048

// Default connection timeouts
DefaultHTTPTransportIdleConnTimeout = 90 * time.Second
Expand Down Expand Up @@ -186,6 +187,7 @@ func defaultHTTPTransport() *http.Transport {
TLSHandshakeTimeout: DefaultHTTPTransportTLSHandleshakeTimeout,
MaxIdleConns: DefaultHTTPTransportMaxIdleConns,
MaxIdleConnsPerHost: DefaultHTTPTransportMaxIdleConnsPerHost,
MaxConnsPerHost: DefaultHTTPTransportMaxConnsPerHost,
IdleConnTimeout: DefaultHTTPTransportIdleConnTimeout,
ExpectContinueTimeout: DefaultHTTPTransportExpectContinueTimeout,
ForceAttemptHTTP2: true,
Expand Down
Loading