[zeromq-dev] zmq_term() blocks in 2.1

Martin Sustrik sustrik at 250bpm.com
Tue Jan 11 08:13:26 CET 2011


> Thanks for pointing me back to the older discussions.  I read through
> some of emails and I think what I want is somewhat simpler then the
> issues discussed.  I don't care if messages are fully flushed at the
> time zmq_term() returns, I just don't want zmq_term() to hang my main
> thread.

Simply change ZMQ_LINGER option to 0. That way the socket won't wait 
till all the data are flushed.


More information about the zeromq-dev mailing list