diff --git a/cmd/rest/client.go b/cmd/rest/client.go index 74f198a86..ebb326288 100644 --- a/cmd/rest/client.go +++ b/cmd/rest/client.go @@ -100,9 +100,8 @@ func NewClient(url *url.URL, tlsConfig *tls.Config, timeout time.Duration, newAu tr := &http.Transport{ Proxy: http.ProxyFromEnvironment, DialContext: newCustomDialContext(timeout), - MaxIdleConnsPerHost: 4096, - MaxIdleConns: 4096, - IdleConnTimeout: 120 * time.Second, + MaxIdleConnsPerHost: 256, + IdleConnTimeout: 60 * time.Second, TLSHandshakeTimeout: 30 * time.Second, ExpectContinueTimeout: 10 * time.Second, TLSClientConfig: tlsConfig, diff --git a/cmd/storage-rest-server.go b/cmd/storage-rest-server.go index 349d5a74a..797c34875 100644 --- a/cmd/storage-rest-server.go +++ b/cmd/storage-rest-server.go @@ -415,7 +415,6 @@ func (s *storageRESTServer) WalkHandler(w http.ResponseWriter, r *http.Request) } defer w.(http.Flusher).Flush() - w.Header().Set("Connection", "close") // Pro-actively ask client to close this connection. encoder := gob.NewEncoder(w) for fi := range fch { encoder.Encode(&fi)