[zeromq-dev] feeback on new poller API
Doron Somech
somdoron at gmail.com
Mon Mar 13 11:24:53 CET 2017
When timeout elapsed the errno should be ETIMEDOUT.
I think it is a consistent behavior across C, but I'm actually not sure.
Maybe we can change the behavior for wait_all and leave the wait as is.
It is still draft but I think the change can upset too many people.
On Mar 13, 2017 11:41 AM, "brunobodin ." <brunobodin at gmail.com> wrote:
> Hi
>
> following discussion about migration from 4.1.2 to 4.2.2, I moved my code
> to the new polling API.
>
> I have a question about zmq_poller_wait : when I call it with a timeout of
> 0, the outcome can be that
> no socket is ready (which is possible in my design), but in that case,
> zmq_poller_wait return -1
>
> I think we should be able to distinguish between an error during the call
> and the case where
> there is no socket ready ?
> so maybe returnd code shoud be -1 on error, 0 when there is no event, 1
> otherwise ?
>
> Bruno
>
>
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> https://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20170313/c4a2ca3e/attachment.htm>
More information about the zeromq-dev
mailing list