On Mon, Feb 28, 2011 at 9:35 AM, Christian Gudrian <[email protected]> wrote:
> That's exactly how I did it. And yet zmq_term blocked forever (the call > to recv in mailbox_t::recv never returns). Which was why I consulted the > documentation which clearly says that calling zmq_term with sockets open > might cause this very behaviour. There are afaik two known cases where zmq_term will block (Martin, correct me if I'm wrong): * If you have an open socket in the same thread (https://github.com/zeromq/zeromq2/issues#issue/85) * If there is output pending on a PUSH/REQ/REP/PAIR socket The first one you handle by closing sockets before calling zmq_term, the second by setting the LINGER option to zero on sockets. -Pieter _______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
