[zeromq-dev] [PATCH] Add ZMQ_TIMEOUT sockopt.
ph at imatix.com
Mon May 23 21:18:56 CEST 2011
2011/5/23 Fabien Niñoles <fabien.ninoles at gmail.com>:
> 2011/5/23 Pieter Hintjens <ph at imatix.com>:
>> Interesting stuff. Would it perhaps be better to use SO_RCVTIMEO and
> A little bit more difficult but doable... How this option is wide
> spread accross OS ?
As far as I know, they are on POSIX and Windows.
> I would also have to rethink the code a little bit to return EAGAIN
> too, I guess.
ETIMEDOUT is consistent with how these are mostly used, which is for
accept() and connect(). But EAGAIN is probably better for recv() and
>> If you can make a patch that applies to 2.1 (or 2.2, the same), we may
>> find more people willing to test this.
> That's include me probably. But probably not before next saturday helas.
No hurry. It's great to see your patches. Remember that the 2.2 branch
is there for adding new functionality to 2.x, it's basically the same
code base as 2.1 with a few new features.
More information about the zeromq-dev