[zeromq-dev] several binds on the same ipc

Pieter Hintjens ph at imatix.com
Thu May 31 18:57:40 CEST 2012

On Thu, May 31, 2012 at 6:35 PM, Pierre Ynard <linkfanel at yahoo.fr> wrote:

> A solution could be to try to connect() to the existing socket: if it is
> a stray socket left by a dead process, it should return a "connection
> refused" error, so you know you can delete it. There is still a race
> condition between that check and the unlink() though.

There's a relevant stackoverflow thread here:


Perhaps there are ways to make this work better on some OSes at least.


More information about the zeromq-dev mailing list