Disable http2 until we have upstream bugs fixed (#7711)

We should revert this PR in future once we
have upstream bugs fixed regarding http2 behavior
This commit is contained in:
Harshavardhana
2019-05-30 19:49:33 -07:00
committed by GitHub
parent 0c16b1c9a7
commit 993a79d9c6
2 changed files with 8 additions and 17 deletions

View File

@@ -28,7 +28,6 @@ import (
"time"
xhttp "github.com/minio/minio/cmd/http"
"golang.org/x/net/http2"
)
// DefaultRESTTimeout - default RPC timeout is one minute.
@@ -118,12 +117,6 @@ func NewClient(url *url.URL, tlsConfig *tls.Config, timeout time.Duration, newAu
TLSClientConfig: tlsConfig,
DisableCompression: true,
}
if tlsConfig != nil {
// If TLS is enabled configure http2
if err := http2.ConfigureTransport(tr); err != nil {
return nil, err
}
}
return &Client{
httpClient: &http.Client{Transport: tr},
httpIdleConnsCloser: tr.CloseIdleConnections,