[zeromq-dev] ZeroMQ and hot server restarts

Pieter Hintjens ph at imatix.com
Fri Oct 12 06:43:39 CEST 2012

On Thu, Oct 11, 2012 at 11:29 PM, Merijn Verstraaten
<merijn at inconsistent.nl> wrote:

> I'm trying to achieve the same effect using ZeroMQ, but I'm not sure whether this is actually possible. As far as I can tell from the manual pages closing a socket will cause messages that are in-transit to be lost

No, this isn't true (it used to be). A socket will "linger" during
close until messages are all sent. This can wait forever in some cases
so we tend to force linger to 1 second or so.

I'm kind of unclear how your fork/exec mechanism works in TCP at all.
You have two processes both bound to the same endpoint? Messages from
clients go to both instances, or one?


More information about the zeromq-dev mailing list