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

Martin Sustrik sustrik at 250bpm.com
Sat Jun 11 18:12:09 CEST 2011


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



More information about the zeromq-dev mailing list