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

fix(compute/metadata): set IdleConnTimeout for http.Client #7084

Merged
merged 2 commits into from Nov 18, 2022

Conversation

codyoss
Copy link
Member

@codyoss codyoss commented Nov 18, 2022

This helps clean up idled connections held by the keep-alive. The default transport set this to 90 seconds but since we declare our own the default zero value means they are never closed out if they are under the threshold for connections to keep alive(2).

Fixes: #5430

This helps clean up idled connections held by the keep-alive.
The default transport set this to 90 seconds but since we
declare our own the default zero value means they are never
closed out if they are under the threshold for connections to
keep alive(2).

Fixes: googleapis#5430
@codyoss codyoss requested a review from a team as a code owner November 18, 2022 20:41
@product-auto-label product-auto-label bot added size: xs Pull request size is extra small. api: compute Issues related to the Compute Engine API. labels Nov 18, 2022
@codyoss codyoss added the automerge Merge the pull request once unit tests and other checks pass. label Nov 18, 2022
@gcf-merge-on-green gcf-merge-on-green bot merged commit 766516a into googleapis:main Nov 18, 2022
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label Nov 18, 2022
@release-please release-please bot mentioned this pull request Nov 18, 2022
@codyoss codyoss deleted the idleconns branch November 18, 2022 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: compute Issues related to the Compute Engine API. size: xs Pull request size is extra small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

compute/metadata: metadata.OnGCE() leaks 2 http goroutines
2 participants