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

core: Refine mutex during reloads (fix #5628) #5645

Merged
merged 1 commit into from
Jul 21, 2023
Merged

core: Refine mutex during reloads (fix #5628) #5645

merged 1 commit into from
Jul 21, 2023

Conversation

mholt
Copy link
Member

@mholt mholt commented Jul 21, 2023

Separate currentCtxMu to protect currentCtx, and a new rawCfgMu to protect rawCfg and synchronize loads.

This fixed the panic for me and race detector did not find any data races.

Separate currentCtxMu to protect currentCtx, and a new
rawCfgMu to protect rawCfg and synchronize loads.
@mholt mholt added the bug 🐞 Something isn't working label Jul 21, 2023
@mholt mholt added this to the v2.7.0 milestone Jul 21, 2023
@mholt mholt marked this pull request as ready for review July 21, 2023 21:07
@francislavoie
Copy link
Member

I can also confirm that building with the trojan plugin no longer panics with this change 🎉

@mholt mholt merged commit b51dc5d into master Jul 21, 2023
22 checks passed
@mholt mholt deleted the ctxmu branch July 21, 2023 21:32
@mholt
Copy link
Member Author

mholt commented Jul 21, 2023

Holy heck that was fast, thanks @francislavoie ! 💯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐞 Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants