We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The application deadlocks at ::zmq::send() at lines 195-197 of server.cpp trying to send a return code 200:
if( ::zmq_send( socket, id, idSize, ZMQ_SNDMORE ) != idSize || ::zmq_send( socket, rep.c_str(), rep.length(), more ) != int( rep.length( ))) { ZEROEQWARN << "Could not send HTTP response header: " << zmq_strerror( zmq_errno( )) << std::endl; return; }
The text was updated successfully, but these errors were encountered:
Setting ZMQ_LINGER to something low or even 0 is one fix. ZMQ_NOBLOCK could as well, but appears to have issue on closing the socket: http://stackoverflow.com/questions/7538988/zeromq-how-to-prevent-infinite-wait
Sorry, something went wrong.
Thanks to @favreau for testing. ZMQ_NOBLOCK seems to do the trick. Will attack this next week and try to add test for it :)
Thanks @tribal-tec ! :)
ea42079
Merge pull request #169 from tribal-tec/157
aab499d
Fix #157
No branches or pull requests
The application deadlocks at ::zmq::send() at lines 195-197 of server.cpp trying to send a return code 200:
The text was updated successfully, but these errors were encountered: