[zeromq-dev] mailbox.cpp Assertion
Ian Barber
ian.barber at gmail.com
Mon Jul 9 22:34:02 CEST 2012
On Mon, Jul 9, 2012 at 9:26 PM, Thomas S Hatch <thatch45 at gmail.com> wrote:
>
> Actually, I should ask...
>
> The main issue we are seeing in here is that the SUB socket looses
> connection from the PUB socket when connecting over unreliable connections
> like the internet. Is there a way to detect if the SUB socket is still
> connected to the PUB socket?
>
Sort of: Either layer a heartbeat on top, or use the ZMQ_MONITOR stuff in
ZMQ3.1+ to look for disconnect events. I suspect you'll get better accuracy
with the heartbeat (as it'll catch a multitude of sins), but monitor would
easier.
Ian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20120709/99515270/attachment.htm>
More information about the zeromq-dev
mailing list