[zeromq-dev] [PATCH] Add ZMQ_RCVTIMEO/SNDTIMEO sockopt (fix)
Fabien Niñoles
fabien.ninoles at gmail.com
Sun Jun 12 01:53:29 CEST 2011
OK, I add a test for this condition, find a bug in my previous code
and fix this. Nothing better than a test to check your work :)
Here the new patch.
Fabien
2011/6/11 Martin Sustrik <sustrik at 250bpm.com>:
> On 06/11/2011 05:59 PM, Fabien Niñoles wrote:
>>
>> 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.
>
> That looks better :)
>
> As for the test case do it this way:
>
> 1. bind a SUB socket
> 2. start receiving with timeout of 10 secs
> 3. after 9 secs connect to the SUB from another application but don't send
> any messages.
> 4. the recv call shoul timeout after 19 secs (as opposed to 10).
>
> Martin
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-sockopt-ZMQ_RCVTIMEO-ZMQ_SNDTIMEO.patch
Type: text/x-patch
Size: 28671 bytes
Desc: not available
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110611/4b5fa5d0/attachment.bin>
More information about the zeromq-dev
mailing list