-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This change enables configuration of http connection pooling #286
Conversation
To provide customers with more options to tune for their situation this introduces a new option to reduce or disable connection reuse. In some cases disabling connection reuse may avoid read timeouts or pausing for connections a server, or CDN may deprioritize. I have also updated the documentation for the expanded timeout option to highlight it is used for more than just request timeout.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job!
b15f7a2
to
5e1c6df
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Happy if you want to merge now and follow up, or make more changes.
Co-authored-by: Josh Deprez <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
[Full Changelog](v5.9.5...v5.9.6) - This change enables configuration of http connection pooling [#286](#286) (@wolfeidau) - This change will ensure a single HTTP client is created [#285](#285) (@wolfeidau)
[Full Changelog](v5.9.5...v5.9.6) - This change enables configuration of http connection pooling [#286](#286) (@wolfeidau) - This change will ensure a single HTTP client is created [#285](#285) (@wolfeidau)
To provide customers with more options to tune for their situation this introduces a new option to reduce or disable connection reuse. In some cases disabling connection reuse may avoid read timeouts or pausing for connections a server, or CDN may deprioritize.
I have also updated the documentation for the expanded timeout option to highlight it is used for more than just request timeout.
Also disabled redirects, again to ensure the client completes the operation quickly.
See https://github.com/golang/go/blob/master/src/net/http/transport.go#L44-L55 for more context on the defaults.