[zeromq-dev] [PATCH] Add ZMQ_RCVTIMEO/SNDTIMEO sockopt (fix)

Fabien Niñoles fabien.ninoles at gmail.com
Sat Jun 11 17:59:17 CEST 2011


Here the new patch.  I wasn't able however to make the test fail
without the fix.  If you can figure out a way to achieve this, your
welcome.

Fabien

2011/6/11 Fabien Niñoles <fabien.ninoles at gmail.com>:
> 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.
>
> Fabien
>
> 2011/6/11 Martin Sustrik <sustrik at 250bpm.com>:
>> Hi Fabien,
>>
>>> And another update where I removed the block parameter;
>>
>> I've checked the patch.
>>
>> Please, have a look at socket_base_t::send and socket_base_t::recv
>> functions. There's process_commands() called in the loop. If the loop
>> iterates several times, it may happen that actual timeout will be higher
>> that the one requested by the user.
>>
>> Martin
>>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-sockopt-ZMQ_RCVTIMEO-ZMQ_SNDTIMEO.patch
Type: text/x-patch
Size: 24468 bytes
Desc: not available
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110611/a0c103ab/attachment.bin>


More information about the zeromq-dev mailing list