From d7dc9aaf526f41ef7849236c892c49f4cd3e7701 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Sat, 1 Feb 2020 08:31:55 +0530 Subject: [PATCH] fix: remove response header timeout (#8919) Adding respone header timeout seems to have premature timeout like consequences which leads to potential disconnections. --- cmd/utils.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cmd/utils.go b/cmd/utils.go index d27800879..35409c900 100644 --- a/cmd/utils.go +++ b/cmd/utils.go @@ -427,12 +427,10 @@ func newCustomHTTPTransport(tlsConfig *tls.Config, dialTimeout, dialKeepAlive ti tr := &http.Transport{ Proxy: http.ProxyFromEnvironment, DialContext: newCustomDialContext(dialTimeout, dialKeepAlive), - MaxIdleConns: 256, MaxIdleConnsPerHost: 256, - IdleConnTimeout: 30 * time.Second, + IdleConnTimeout: 60 * time.Second, TLSHandshakeTimeout: 10 * time.Second, - ResponseHeaderTimeout: 10 * time.Second, - ExpectContinueTimeout: 3 * time.Second, + ExpectContinueTimeout: 10 * time.Second, TLSClientConfig: tlsConfig, // Go net/http automatically unzip if content-type is // gzip disable this feature, as we are always interested