[zeromq-dev] strange behavior with pub/sub sockets (when pub connects)

Pieter Hintjens ph at imatix.com
Thu Apr 7 22:33:10 CEST 2011


On Thu, Apr 7, 2011 at 10:27 PM, Robert W <robertwalters83 at gmail.com> wrote:

> Interesting, so if you want a reliable 1-to-1 pub/sub you could have your
> publisher do the connecting.

Definitely not recommended to rely on this unless/until it's
documented as deliberate behavior.

> The rebind thing is a bit bizarre. It actually blocks ad infinitum until I
> kill the publisher (which connects). After that, the socket goes into a
> TIME_WAIT state and then eventually clears up..

This sounds like normal TCP behavior, the server can't rebind because
a client is still connected to the old port. Normally this indicates a
buggy client (PUB socket, in this case).

Sustrik: ping, you need to be reading this thread...

-Pieter



More information about the zeromq-dev mailing list