mirror of
https://github.com/fosrl/newt.git
synced 2026-05-05 23:50:10 -05:00
[PR #276] [CLOSED] refactor(proxy): fix race conditions with atomic types #431
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/fosrl/newt/pull/276
Author: @LaurenceJJones
Created: 3/16/2026
Status: ❌ Closed
Base:
dev← Head:refactor/proxy-fix-races📝 Commits (4)
8a62a4arefactor(proxy): fix race conditions with atomic typesbfeb87frefactor(proxy): capture tunnel ID per connection/flow to avoid misattribution0b31c78fix: remove twice call9be76a3Merge pull request #1 from LaurenceJJones/review/proxy-fix-races📊 Changes
1 file changed (+56 additions, -29 deletions)
View changed files
📝
proxy/manager.go(+56 -29)📄 Description
Community Contribution License Agreement
By creating this pull request, I grant the project maintainers an unlimited,
perpetual license to use, modify, and redistribute these contributions under any terms they
choose, including both the AGPLv3 and the Fossorial Commercial license terms. I
represent that I have the right to grant this license for all contributed content.
Description
This fixes potential race conditions where running and currentTunnelID were being read without holding the mutex in hot paths.
How to test?
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.