Increased MaxIdleConnsPerHost to prevent excessive re-connections and TIME_WAIT when more than 100 clients are using minio (#5860)

master
cbenien 7 years ago committed by Dee Koder
parent 4f68e0109c
commit e43cd0d5c8
  1. 6
      cmd/utils.go

@ -265,9 +265,9 @@ func NewCustomHTTPTransport() http.RoundTripper {
Timeout: 30 * time.Second, Timeout: 30 * time.Second,
KeepAlive: 30 * time.Second, KeepAlive: 30 * time.Second,
}).DialContext, }).DialContext,
MaxIdleConns: 100, MaxIdleConns: 1024,
MaxIdleConnsPerHost: 100, MaxIdleConnsPerHost: 1024,
IdleConnTimeout: 90 * time.Second, IdleConnTimeout: 30 * time.Second,
TLSHandshakeTimeout: 10 * time.Second, TLSHandshakeTimeout: 10 * time.Second,
ExpectContinueTimeout: 1 * time.Second, ExpectContinueTimeout: 1 * time.Second,
TLSClientConfig: &tls.Config{RootCAs: globalRootCAs}, TLSClientConfig: &tls.Config{RootCAs: globalRootCAs},

Loading…
Cancel
Save