[zeromq-dev] ZMQ 2-x PUBSUB when router dies

Pieter Hintjens ph at imatix.com
Sat Jun 2 00:27:03 CEST 2012


On Fri, Jun 1, 2012 at 11:59 PM, Alex Sergeyev <abc at alexsergeyev.com> wrote:

> Yeah, I'll probably go this way. The thing is that publisher did not
> die, it's the router in-between them that gone away suddenly (crashed
> in a way similar to unplugging it or separating network physically
> without letting the endpoints know about it).

TCP will in fact keep the socket alive hoping to reconnect, with a
very long timeout.

You need to implement application-level heartbeats to get around this
specific type of failure.

-Pieter



More information about the zeromq-dev mailing list