Hi, here is an example with polling: https://github.com/imatix/zguide/blob/master/examples/Python/asyncsrv.py 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 ZMQ_SNDTIMEO) On Fri, Nov 21, 2014 at 2:25 PM, Dustin Webb <[email protected]> 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 > [email protected] > http://lists.zeromq.org/mailman/listinfo/zeromq-dev > _______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
