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 ." <[email protected]> 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 > [email protected] > https://lists.zeromq.org/mailman/listinfo/zeromq-dev >
_______________________________________________ zeromq-dev mailing list [email protected] https://lists.zeromq.org/mailman/listinfo/zeromq-dev
