[zeromq-dev] Blocking receive with timeout

Martin Sustrik sustrik at 250bpm.com
Fri Jul 8 08:57:50 CEST 2011

On 07/06/2011 08:48 PM, Christian Martinez wrote:
> Quick question, am I missing a timeout option for a blocking receive
> perhaps in one of the flags? If it’s not there, is there a philosophical
> or technical reason for it not to exist?

There's a POSIX-compliant way to do so. SO_RCVTIMEO socket option.

0MQ/3.0 (zeromq/libzmq) introduces it to 0MQ in form of ZMQ_RCVTIMEO option.


More information about the zeromq-dev mailing list