[zeromq-dev] Extending zmq_term semantics to wait for queued messages.

Martin Sustrik sustrik at 250bpm.com
Fri Jan 28 09:31:36 CET 2011


On 01/28/2011 09:26 AM, Victor Vlasenko wrote:
> Hi All,
>
> In ZeroMQ 2.1.0 semantics for zmq_term was changed to block until all
> messages will be pushed to the network and all sockets were closed. What
> if semantics of zmq_term be extended to block until all queued messages
> ZeroMQ has in its buffers be pulled from the network? What do you think,
> will it be the right change for ZeroMQ?

I have no strong opinion on this.

Just a note: You would have to honour ZMQ_LINGER option, i.e. you will 
get ETERM if there are no more messages queued *or* if the linger period 
have expired.

Martin



More information about the zeromq-dev mailing list