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 ef4e1bb commit cdeb580Copy full SHA for cdeb580
cleanhttp.go
@@ -45,7 +45,7 @@ func DefaultPooledTransportWithMin(minIdleConnsPerHost int) *http.Transport {
45
TLSHandshakeTimeout: 10 * time.Second,
46
ExpectContinueTimeout: 1 * time.Second,
47
ForceAttemptHTTP2: true,
48
- MaxIdleConnsPerHost: func() int {
+ MaxIdleConnsPerHost: func() int {
49
maxIdleConnsPerHost := runtime.GOMAXPROCS(0) + 1
50
if maxIdleConnsPerHost < minIdleConnsPerHost {
51
return minIdleConnsPerHost
0 commit comments