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 panic when agentpf.client creates a Tunnel #3775

Merged
merged 2 commits into from
Jan 20, 2025

Conversation

thallgren
Copy link
Member

A race could occur where several requests where made to agentpf.client.Tunnel on a client that had errored when creating its port-forward to the agent. The implementation could handle one such requests but not several, resulting in a panic in situations where multiple simultaneous requests were made to the same client during a very short time period,

Relates to #3766

Signed-off-by: Thomas Hallgren <thomas@tada.se>
A race could occur where several requests where made to
`agentpf.client.Tunnel` on a client that had errored when creating its
port-forward to the agent. The implementation could handle one such
requests but not several, resulting in a panic in situations where
multiple simultaneous requests were made to the same client during a
very short time period,

Signed-off-by: Thomas Hallgren <thomas@tada.se>
@thallgren thallgren requested review from P0lip and njayp January 20, 2025 11:37
@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
@thallgren thallgren merged commit 0bee39f into release/v2.21 Jan 20, 2025
10 of 11 checks passed
@thallgren thallgren deleted the thallgren/agentpf-race branch January 20, 2025 12:48
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