[zeromq-dev] zombies hang to branches in zmq::ctx_t::terminate

Martin Sustrik sustrik at 250bpm.com
Tue Feb 8 11:51:14 CET 2011


Hi Gaspard,

>  From my guess, the "zombie" won't let go and keeps haunting the
> application because it has some unsent messages in its queue (PUSH socket).

Use ZMQ_LINGER option to specify the time sockets try to send the 
pending messages after they are closed. By setting it to 0, the socket 
will exit immediately on zmq_close().

Martin



More information about the zeromq-dev mailing list