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 Conditions In All Slurper.handleConnection Callbacks #953

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jcalabro
Copy link

Hi there!

I was curious about your code and pulled it down to take a look. When I went to run the tests, I noticed that there was a single race condition, which is resolved with this commit.

The idea is that the cursor's value should only be updated after acquiring activeSub's lock.

Also, a small suggestion, it might be a good idea to add the race detector to CI? Didn't want to push that up to y'all in a PR out of the blue though since that feels like bad open source form 😄

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.

1 participant