You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The http.Transport by default creates a hidden http2.Transport which is supposed to use the settings from the public http.Transport. But the DisableKeepAlive setting isn't propagated.
The text was updated successfully, but these errors were encountered:
Proxy: not applicable (net/http does proxy)
Dial: not applicable (net/http dials and uses it, then passes conn)
DialTLS: same
TLSClientConfig: same
TLSHandshakeTimeout: same DisableKeepAlives: missing DisableCompression: missing
MaxIdleConnsPerHost: not applicable; this will be approximately 1 always, or maybe 2 during graceful server shutdown, then promptly 1 again. ResponseHeaderTimeout: missing
bradfitz
changed the title
net/http: http2 transport doesn't use http1 Transport.DisableKeepAlives
net/http: http2 transport doesn't respect all http1 Transport fields
Jan 19, 2016
The http2 Transport now respects the http1 Transport's
DisableCompression, DisableKeepAlives, and ResponseHeaderTimeout, if
the http2 and http1 Transports are wired up together, as they are in
the upcoming Go 1.6.
Updates golang/go#14008
Change-Id: I2f477f6fe5dbef9d0e5439dfc7f3ec2c0da7f296
Reviewed-on: https://go-review.googlesource.com/18721
Reviewed-by: Andrew Gerrand <[email protected]>
Run-TryBot: Brad Fitzpatrick <[email protected]>
TryBot-Result: Gobot Gobot <[email protected]>
The http.Transport by default creates a hidden http2.Transport which is supposed to use the settings from the public http.Transport. But the DisableKeepAlive setting isn't propagated.
The text was updated successfully, but these errors were encountered: