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

ZMQ doesn't work with the raw socket in Linux but works in Windows #1024

Closed
henrywoo opened this issue Jun 11, 2015 · 2 comments
Closed

ZMQ doesn't work with the raw socket in Linux but works in Windows #1024

henrywoo opened this issue Jun 11, 2015 · 2 comments

Comments

@henrywoo
Copy link

I have a client program written with raw socket communicating with a server. It uses 'select' to poll the socket descriptor and get the message from the server. After getting message, I use a ZMQ socket to send the message out.

This works perfectly in windows. But in Linux, after I call the ZMQ 'send' function, I cannot receive message from the server any more. It seems the raw socket has been affected somehow.

The program is a multithread program but I have dealt with ZMQ carefully. The client program is running in a thread A and the ZMQ socket is only used by that thread A. I think I used ZMQ correctly as it is working well in Windows. But how comes the issue in Linux?

Anybody knows if this is normal? I am suspecting this is a ZMQ issue. As long as I remove the ZMQ 'send' function, the program works well. Anybody knows how to solve this issue? and why it is working well in Windows, not in Linux?

@hintjens
Copy link
Member

Please don't cross-post issues to multiple projects.

@jemc
Copy link
Member

jemc commented Jun 11, 2015

For reference: zeromq/libzmq#1438

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

No branches or pull requests

3 participants