[zeromq-dev] XREP/XREQ And Inproc . Clean Shutdown

Antonio Teixeira eagle.antonio at gmail.com
Thu Mar 1 11:44:43 CET 2012

Ian And Others , thanks for your answer ..

Will using LINGER actually cause message to be lost on a shutdown , since
the memory will actually get dumped on timeout.
Im looking for something that i can close the socket and allow all the
messages to vacate both the workers and the device (INPROC) so i can rest
assured that there is no data in transit when i shutdown the context.

Maybe this is already is present by simply calling :

Will cause the context to actually wait untill there are no more message in
this "system"


2012/2/29 Ian Barber <ian.barber at gmail.com>

> On Wed, Feb 29, 2012 at 5:31 PM, Antonio Teixeira <eagle.antonio at gmail.com
> > wrote:
>> Hello.
>> Is there are options / best pratices to prevent message lost like :
>> "Close External Socket , " Drain All the Message Outbound / Inbound
>> inside the devices and let the workers close ?"
> Look at the ZMQ_LINGER options - they let you control how long you wait to
> process messages.
> Ian
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20120301/9be5974a/attachment.htm>

More information about the zeromq-dev mailing list