We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8b8629 commit 8bee10fCopy full SHA for 8bee10f
clients/algoliasearch-client-go/algolia/transport/requester.go
@@ -10,6 +10,7 @@ const (
10
DefaultConnectTimeout = 2 * time.Second
11
DefaultKeepAliveDuration = 5 * time.Minute
12
DefaultMaxIdleConnsPerHost = 64
13
+ DefaultMaxIdleTimeout = 45 * time.Second
14
DefaultTLSHandshakeTimeout = 2 * time.Second
15
)
16
@@ -36,6 +37,7 @@ func DefaultHTTPClient(connectTimeout *time.Duration) *http.Client {
36
37
}).DialContext,
38
DisableKeepAlives: false,
39
MaxIdleConnsPerHost: DefaultMaxIdleConnsPerHost,
40
+ IdleConnTimeout: DefaultConnectTimeout,
41
Proxy: http.ProxyFromEnvironment,
42
TLSHandshakeTimeout: DefaultTLSHandshakeTimeout,
43
},
0 commit comments