[zeromq-dev] Issue 85 & 92

Mikko Koppanen mikko.koppanen at gmail.com
Sun Oct 3 12:00:19 CEST 2010

On Sun, Oct 3, 2010 at 7:43 AM, Steven McCoy <steven.mccoy at miru.hk> wrote:
> On 3 October 2010 13:09, Martin Sustrik <sustrik at 250bpm.com> wrote:
>> Are you proposing that zmq_close blocks until all messages are sent?
> I would suggest a parameter, one at least for control of flush or immediate
> termination, possibly a second for timeout if that is appropriate.  Give the
> control to the application.
> Probably would be more prudent to be flush if and only if currently
> connected.  Nobody prefers waiting around for an application to shutdown.


how about something like the following:
https://gist.github.com/a6b23cf9d36dfdd3628a ?

In this scenario zmq_close would return the amount of messages
in-flight and would move the decision to drop them to the user

Mikko Koppanen

More information about the zeromq-dev mailing list