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

keystore: fix conn leak in {AWS,GCP,Fortanx,Gemalto} backend #451

Merged
merged 1 commit into from
Mar 5, 2024

Conversation

aead
Copy link
Member

@aead aead commented Mar 5, 2024

This commit fixes a TCP conn leak in the AWS, GCP, Fortanix and Gemalto KMS backend. Due to a missing http.Response.Body.Close call, the status check in these backends accumulated TCP connections that are not closed by the runtime.

This resource leak can cause OOM issues.

Fixes #445

This commit fixes a TCP conn leak in the AWS, GCP, Fortanix and
Gemalto KMS backend. Due to a missing `http.Response.Body.Close`
call, the status check in these backends accumulated TCP connections
that are not closed by the runtime.

This resource leak can cause OOM issues.

Fixes #445

Signed-off-by: Andreas Auernhammer <github@aead.dev>
Copy link
Member

@vadmeste vadmeste left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@shtripat shtripat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@aead aead merged commit ca2ed00 into master Mar 5, 2024
7 checks passed
@aead aead deleted the fix-status-check-leak branch March 5, 2024 15:49
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.

Memory leak in container
3 participants