[zeromq-dev] [PATCH] Add ZMQ_RCVTIMEO/SNDTIMEO sockopt [was: [PATCH] Add ZMQ_TIMEOUT sockopt]
sustrik at 250bpm.com
Sat Jun 11 16:49:26 CEST 2011
On 06/11/2011 04:24 PM, Fabien Niñoles wrote:
> You mean, if xrecv/xsend return EAGAIN ? I can't see how could this
> happen with process_command returning 0, but you're probably right, I
> will check it.
What can happen is that new commands arrive, they are processed, but the
processing doesn't change the status quo -- message still cannot be
sent/received. In that case the loop is restarted and waiting for new
commands is initiated. In this case the timeout period should be
shortened by the time already spent waiting in the previous loop iteration.
More information about the zeromq-dev