In the example below taken from Nicholas Piel's ZMQ tutorial, a client makes connections to socket 5000 and 6000. My question is, suppose there are two separate servers, one that handles port 5000 messages and one that handles 6000?
 
What happens if the server listening to port 5000 is down? It appears to me this client below is blocked even though one of its servers is available.
 
Regards
 
David
 
import zmq
context = zmq.Context()
socket = context.socket(zmq.REQ)
socket.connect("tcp://127.0.0.1:5000")
socket.connect("tcp://127.0.0.1:6000")
 
for in range(10):
    msg = "msg %s" % i
    socket.send(msg)
    print "Sending", msg
    msg_in = socket.recv()
_______________________________________________
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to