[zeromq-dev] Implementing failover in client side

Pieter Hintjens ph at imatix.com
Sat Oct 30 12:26:12 CEST 2010


2010/10/30 Jaime Fernández <jjjaime at gmail.com>:

> I'm using the python binding, so ZFL classes might be hard to be used.
> However I will have a look at them.

Even if you don't use them as such, they show how to do this using
polling and heartbeating.

> Would it be possible to specify a timeout in zmq (to avoid an eternal
> blocked socket)? For example, with the function zmq_setsockopt you could
> specify the amount of seconds your socket will be waiting for
> zmq_send/zmq_recv. It could be an intermediate approach.

Just use zmq_poll.

-
Pieter Hintjens
iMatix - www.imatix.com



More information about the zeromq-dev mailing list