[zeromq-dev] zloop.c: timer event cannot break out of zloop
Pieter Hintjens
ph at imatix.com
Sun Jan 13 13:10:07 CET 2013
I've fixed this, I think, see: https://github.com/zeromq/czmq/pull/112
Now waiting for one of the CZMQ maintainers to merge it.
-Pieter
On Fri, Jan 11, 2013 at 8:46 AM, Gundry, Samuel (TI)
<Samuel.Gundry at riotinto.com> wrote:
> Hi,
>
> In zloop, a timer return code "rc" may be overwritten by poller return codes. "rc" is set at line 372 but is then overwritten at line 414. https://github.com/zeromq/czmq/blob/master/src/zloop.c#L372
>
> I'm not sure of the correct behaviour hence why I haven't submitted a patch.
>
> Should the pollers be called if a timer returns -1 in the same loop?
> If not, then don't loop over the pollers when "rc != -1"?
>
> Regards,
> Sam
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
More information about the zeromq-dev
mailing list