Skip to content

Implement mutex for halving of stats counters#72

Merged
masterking32 merged 1 commit into
masterking32:mainfrom
abolix:abolix-race-fix
Mar 31, 2026
Merged

Implement mutex for halving of stats counters#72
masterking32 merged 1 commit into
masterking32:mainfrom
abolix:abolix-race-fix

Conversation

@abolix
Copy link
Copy Markdown
Contributor

@abolix abolix commented Mar 31, 2026

Without having the lock, balancer for LeastLoss and LowestLatency might have a little bug, some good resolvers might get decided as "Very low quality"

Added a mutex to ensure atomic halving of counters to prevent drift in sent/acked ratios.
@masterking32 masterking32 merged commit ed05787 into masterking32:main Mar 31, 2026
1 check passed
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