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 a race condition in the async code #121

Merged
merged 1 commit into from
Mar 8, 2023

Conversation

inetic
Copy link
Contributor

@inetic inetic commented Mar 8, 2023

The race condition was happening when the Sender sent a value and was immediatelly dropped between the calls
self.receiver.shared.recv_sync(None) and
self.receiver.shared.is_disconnected(). More information on github issue #120

The race condition was happening when the Sender sent a value and was
immediatelly dropped between the calls
`self.receiver.shared.recv_sync(None)` and
`self.receiver.shared.is_disconnected()`. More information on github
issue zesterer#120
@zesterer
Copy link
Owner

zesterer commented Mar 8, 2023

Thanks, this looks correct at a glance, although as is common with this sort of code: the details are easy to miss. I'll tentatively merge is and see if I can find any odd cases.

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