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

Race condition with received message causes ZMQ_CONNECT_RID to be assigned to wrong socket #583

Merged
merged 2 commits into from
Jul 31, 2018

Conversation

mvilim
Copy link

@mvilim mvilim commented Jul 30, 2018

Due to a race condition between receiving connections on the io thread and the call to socket.connect(), ZMQ_CONNECT_RID can be assigned to the wrong peer socket.

I recently fixed the same bug in the libzmq implementation. You can see more details there.

@mvilim
Copy link
Author

mvilim commented Jul 30, 2018

It appears the test that is failing (TermEndpointIpcTest) has been intermittently failing on the master branch, so I believe that is flaky test and unrelated to my commit.

@fredoboulo
Copy link
Contributor

You're right, it has been sporadically failing for some time now, I will propose a PR about that.

Thanks for the race condition!

@trevorbernard trevorbernard merged commit 061fa4f into zeromq:master Jul 31, 2018
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.

3 participants