[zeromq-dev] DEALER detection of no ROUTER

Adam Covitch adam.covitch at gmail.com
Fri May 3 01:37:42 CEST 2013


If the dealer needs to determine whether the router is available one option
is to have it send a request and poll for a response. No response within a
timeout means the router is down. Any disadvantages to this approach?

Thanks!
Adam


On Thu, May 2, 2013 at 9:36 AM, Pieter Hintjens <ph at imatix.com> wrote:

> You will need to send a message and wait for a reply. There's no other
> way to do this. In any case since connections happen in the background
> you would want some kind of event to arrive in your app telling you
> the connection had succeeded, and the natural with 0MQ would be a
> message.
>
> -Pieter
>
> On Thu, May 2, 2013 at 3:24 PM, Adam Covitch <adam.covitch at gmail.com>
> wrote:
> > I have a simple test app where a dealer connects to a router. If the
> router
> > is not reachable, is there any way for the dealer to detect this?
> >
> > I know that I could use a hadnshaking or ping/pong approach, but I'm
> looking
> > for a cleaner solution, one that is build into ZeroMQ.
> >
> > Thanks!
> > Adam
> >
> > _______________________________________________
> > zeromq-dev mailing list
> > zeromq-dev at lists.zeromq.org
> > http://lists.zeromq.org/mailman/listinfo/zeromq-dev
> >
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20130502/de7671c0/attachment.htm>


More information about the zeromq-dev mailing list