Increase response header timeout for gateway (#9400)

fixes: #9295
This commit is contained in:
poornas 2020-04-21 19:21:27 -07:00 committed by GitHub
parent 2d1ea86fc6
commit 582953260b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -495,7 +495,7 @@ func NewGatewayHTTPTransport() *http.Transport {
RootCAs: globalRootCAs, RootCAs: globalRootCAs,
}, defaultDialTimeout)() }, defaultDialTimeout)()
// Set aggressive timeouts for gateway // Set aggressive timeouts for gateway
tr.ResponseHeaderTimeout = 30 * time.Second tr.ResponseHeaderTimeout = 1 * time.Minute
// Allow more requests to be in flight. // Allow more requests to be in flight.
tr.MaxConnsPerHost = 256 tr.MaxConnsPerHost = 256