Skip to content
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

Reuse http client #47

Merged
merged 4 commits into from
Apr 29, 2020
Merged

Reuse http client #47

merged 4 commits into from
Apr 29, 2020

Conversation

casualjim
Copy link
Member

I made these changes when I was debugging performance issues in my go service.

It ensures that file descriptors can be reused for the http client, and it makes sure that idle connections are closed more timely:

Signed-off-by: Ivan Porto Carrero <ivan@flanders.co.nz>
Signed-off-by: Ivan Porto Carrero <ivan@flanders.co.nz>
Signed-off-by: Ivan Porto Carrero <ivan@flanders.co.nz>
@dmuino dmuino merged commit c1e6bae into Netflix:master Apr 29, 2020
pull bot referenced this pull request in scope-demo/spectator-go Apr 29, 2020
Reuse an http client that allows for connection handle reuse

It ensures that file descriptors can be reused for the http client, and it makes sure that idle connections are closed more timely
@casualjim casualjim deleted the reuse-http-client branch February 13, 2021 02:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants