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: race condition while resetting puncher #1637

Merged
merged 1 commit into from
Oct 15, 2018
Merged

Conversation

3Hren
Copy link
Member

@3Hren 3Hren commented Oct 15, 2018

This commit fixes a thread-safety issue while handling Rendezvous errors. Previously the puncher was reset in another thread, which might cause a race condition, leading to unrecoverable error returned from an acceptor and further worker stop. Now all of this is done in the same thread when the puncher is handled.

This commit fixes a thread-safety issue while handling Rendezvous errors. Previously the puncher was reset in another thread, which might cause a race condition, leading to unrecoverable error returned from an acceptor and further worker stop. Now all of this is done in the same thread when the puncher is handled.
@3Hren 3Hren added 💩 T: bug This PR/Issue fixes a bug P: medium This PR/Issue has normal priority V: patch This PR/Issue requires patch version to be bumped S: Rendezvous This PR/Issue changes Rendezvous labels Oct 15, 2018
@antmat antmat merged commit 54d0709 into master Oct 15, 2018
@antmat antmat deleted the fix/rv/puncher-race branch October 15, 2018 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P: medium This PR/Issue has normal priority S: Rendezvous This PR/Issue changes Rendezvous 💩 T: bug This PR/Issue fixes a bug V: patch This PR/Issue requires patch version to be bumped
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants