[zeromq-dev] ZMQ_XPUB_NODROP + getting rid of dead subscribers with ZMQ_TCP_KEEPALIVE
Michael Haberler
mail17 at mah.priv.at
Wed Jan 14 13:16:43 CET 2015
I'm looking into handling vanishing subscribers from a XPUB_NODROP xpub socket - like a subscriber dropping dead without a disconnect (eg connectivity loss)
I need to have dead subscribers eventually removed so progress on the xpub continues for the rest; publisher blocking for a few seconds is ok
asking before I try it: is ZMQ_TCP_KEEPALIVE on the publisher side an option to achieve this (TCP transport only ok)?
I'm speculating a socket with SO_KEEPALIVE will be eventually closed publisher-side if no response to keepalive probes, and assume as a consequence the subscription would be removed and progress would resume, but looking at libzmq that's still a guess for me
thanks in advance,
Michael
More information about the zeromq-dev
mailing list