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

Ian Barber ian.barber at gmail.com
Thu Mar 1 11:51:35 CET 2012

On Thu, Mar 1, 2012 at 10:44 AM, Antonio Teixeira
<eagle.antonio at gmail.com>wrote:

> Hello
> Ian And Others , thanks for your answer ..
> 1)
> 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 :
> socket_external.close()
> socket_inproc.closer()
> context.term()
> Will cause the context to actually wait untill there are no more message
> in this "system"

Yep, if LINGER is set to -1 (the default) the system wont  terminate until
messages are cleared.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20120301/49936e6a/attachment.htm>

More information about the zeromq-dev mailing list