Commit d1e6a380 authored by ale's avatar ale

Set default timeouts on the proxy http.Transport

parent 28fcb558
Pipeline #6272 passed with stages
in 4 minutes and 17 seconds
......@@ -73,6 +73,12 @@ func (b *Backend) newHandler(ssow *httpsso.SSOWrapper) (http.Handler, error) {
var d net.Dialer
return d.DialContext(ctx, network, b.Upstream[rnd.Intn(len(b.Upstream))])
},
// Parameters match those of net/http.DefaultTransport.
MaxIdleConns: 100,
IdleConnTimeout: 90 * time.Second,
TLSHandshakeTimeout: 10 * time.Second,
ExpectContinueTimeout: 1 * time.Second,
}
h := ssow.Wrap(proxy, b.Host+"/", b.AllowedGroups)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment