[zeromq-dev] zmq_send and zmq_close synchronization

Chris Wong chris at chriswongstudio.com
Tue Mar 9 21:13:26 CET 2010


When zmq_send is called, it returns immediately which is good.  AFAIK, the message will be eventually sent out by the IO thread.

If zmq_close is called on the socket before the message got sent out from the IO thread, the pending message seem to get removed without getting sent out.

Is there any way to wait for the send of all the message associated with a socket to finish?

Chris





More information about the zeromq-dev mailing list