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 goroutine leak in dialer. #3776

Merged
merged 1 commit into from
Jan 20, 2025
Merged

Conversation

thallgren
Copy link
Member

The context passed to the Tunnel call that creates a stream for a dialer, was not cancelled when the dialer was finished, so the stream was never properly closed, leading to one dormant goroutine for each stream.

The context passed to the `Tunnel` call that creates a stream for a
dialer, was not cancelled when the dialer was finished, so the stream
was never properly closed, leading to one dormant goroutine for each
stream.

Signed-off-by: Thomas Hallgren <thomas@tada.se>
@thallgren thallgren requested review from P0lip and njayp January 20, 2025 11:47
@thallgren thallgren added the ok to test Applied by maintainers when a PR is ready to have tests run on it label Jan 20, 2025
@github-actions github-actions bot removed the ok to test Applied by maintainers when a PR is ready to have tests run on it label Jan 20, 2025
Base automatically changed from thallgren/agentpf-race to release/v2.21 January 20, 2025 12:48
@thallgren thallgren requested a review from FuYu3699 January 20, 2025 13:34
@thallgren thallgren merged commit 33158d2 into release/v2.21 Jan 20, 2025
11 checks passed
@thallgren thallgren deleted the thallgren/goroutine-leak branch January 20, 2025 14: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.

2 participants