Skip to content
Permalink
Browse files

fixed/maniphttp: set MaxConnsPerHost

  • Loading branch information
primalmotion committed Nov 5, 2019
1 parent 0be22f2 commit da4ef7125ab5dbcb5b102af18dc336a2f60afe2a
Showing with 3 additions and 2 deletions.
  1. +3 −2 maniphttp/utils.go
@@ -153,8 +153,9 @@ func getDefaultTransport(url string) (*http.Transport, string) {
return &http.Transport{
Proxy: http.ProxyFromEnvironment,
DialContext: dialer,
MaxIdleConns: 100,
MaxIdleConnsPerHost: 50,
MaxConnsPerHost: 32,
MaxIdleConns: 32,
MaxIdleConnsPerHost: 32,
IdleConnTimeout: 90 * time.Second,
TLSHandshakeTimeout: 10 * time.Second,
ExpectContinueTimeout: 1 * time.Second,

0 comments on commit da4ef71

Please sign in to comment.
You can’t perform that action at this time.