[zeromq-dev] REQ-REP Timeouts in PyZMQ

Benjamin benjamin.l.cordes at gmail.com
Fri Nov 21 15:10:02 CET 2014


here is an example with polling:
So the client raises an exception after a pre-defined time-period (1
second e.g.)

Check out the socket options here
http://api.zeromq.org/4-1:zmq-setsockopt   (ZMQ_RCVTIMEO and

On Fri, Nov 21, 2014 at 2:25 PM, Dustin Webb <daemonmaker at gmail.com> wrote:
> Greetings everyone,
> I have recently written a train_extension for Pylearn2 that uses PyZMQ to
> let me query for data from my experiments. My train_extension works in
> conjunction with a client that queries for the data and plots the response.
> The train_extension receives and responds to requests for data after each
> training epoch. However these training epochs can take a long time to run,
> e.g. any where from minutes to hours in the normal cases. As such I'm
> wondering about timeout behavior. Put simply, will the connections timeout?
> And if so, under what conditions and how will the timeouts manifest? In
> other words, will the send on the client raise a TimeOut exception after a
> certain period of time? And on the server side, what will happen to a
> request that was received hours earlier?
> Thanks in advance,
> Dustin Webb
> Undefined Intelligence
> Algorithmic Robotics Lab
> Laboratoire d'Informatique des Systemes Adaptatifs
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev

More information about the zeromq-dev mailing list