From b640c37979ba5ebe6284ba60d6469d6940608e46 Mon Sep 17 00:00:00 2001 From: Luc Talatinian Date: Thu, 4 Dec 2025 12:22:32 -0500 Subject: [PATCH 1/2] default MaxConnsPerHost to 2048 --- aws/transport/http/client.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aws/transport/http/client.go b/aws/transport/http/client.go index 8d7c35a9ec8..c7ef0acc4d2 100644 --- a/aws/transport/http/client.go +++ b/aws/transport/http/client.go @@ -18,6 +18,7 @@ var ( // Default connection pool options DefaultHTTPTransportMaxIdleConns = 100 DefaultHTTPTransportMaxIdleConnsPerHost = 10 + DefaultHTTPTransportMaxConnsPerHost = 2048 // Default connection timeouts DefaultHTTPTransportIdleConnTimeout = 90 * time.Second @@ -186,6 +187,7 @@ func defaultHTTPTransport() *http.Transport { TLSHandshakeTimeout: DefaultHTTPTransportTLSHandleshakeTimeout, MaxIdleConns: DefaultHTTPTransportMaxIdleConns, MaxIdleConnsPerHost: DefaultHTTPTransportMaxIdleConnsPerHost, + MaxConnsPerHost: DefaultHTTPTransportMaxConnsPerHost, IdleConnTimeout: DefaultHTTPTransportIdleConnTimeout, ExpectContinueTimeout: DefaultHTTPTransportExpectContinueTimeout, ForceAttemptHTTP2: true, From 69cf058a4e9eebe643bd34072dc16a26dac2e76c Mon Sep 17 00:00:00 2001 From: Luc Talatinian Date: Thu, 4 Dec 2025 12:23:35 -0500 Subject: [PATCH 2/2] changelog --- .changelog/e8481985f9794c4082447339c1d71a63.json | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .changelog/e8481985f9794c4082447339c1d71a63.json diff --git a/.changelog/e8481985f9794c4082447339c1d71a63.json b/.changelog/e8481985f9794c4082447339c1d71a63.json new file mode 100644 index 00000000000..ca3b93d5816 --- /dev/null +++ b/.changelog/e8481985f9794c4082447339c1d71a63.json @@ -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": [ + "." + ] +} \ No newline at end of file