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

docker: close hijacked write connection when exec ends #24244

Merged
merged 1 commit into from
Oct 17, 2024

Conversation

shoenig
Copy link
Member

@shoenig shoenig commented Oct 17, 2024

Close the stdin and hijacked write connection handles upon exiting the exec function. Otherwise the goroutine reading from stdin will leak and hang forever.

Fixes #24242

@shoenig shoenig force-pushed the docker-exec-leaky-write-conn branch from 53740e8 to a3e5415 Compare October 17, 2024 16:22
@shoenig shoenig added backport/ent/1.9.x+ent Changes are backported to 1.9.x+ent backport/1.9.x backport to 1.9.x release line labels Oct 17, 2024
@shoenig shoenig added this to the 1.9.1 milestone Oct 17, 2024
Copy link
Member

@tgross tgross left a comment

Choose a reason for hiding this comment

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

LGTM

@shoenig shoenig marked this pull request as ready for review October 17, 2024 16:34
@shoenig shoenig merged commit b539b54 into main Oct 17, 2024
32 checks passed
@shoenig shoenig deleted the docker-exec-leaky-write-conn branch October 17, 2024 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/ent/1.9.x+ent Changes are backported to 1.9.x+ent backport/1.9.x backport to 1.9.x release line
Projects
None yet
Development

Successfully merging this pull request may close these issues.

alloc exec leaks a goroutine on exit
2 participants