[zeromq-dev] zloop with fd support and timer cancelling

Pieter Hintjens ph at imatix.com
Wed May 25 07:10:44 CEST 2011


Hi Kim,

Very neat. I actually wrote half the same code today on the plane,
needed it to work with FDs for the UDP transport thing I'm making.
Almost identical changes...

Not sure about cancelling timers based on delay. That's a bit too
sneaky, if we have two or three heartbeats going, with the same delay,
it'll cancel random ones.

Also, there's no need for separate cancel socket/fd methods, since you
can pass the poll item and that contains either a socket or fd.

I've not merged your changes, but pushed mine, let's see how best to
cancel timers. I'll think about it and experiment. We need to be able
to cancel specific timers, so that does mean passing some kind of
reference around.

-Pieter



On Tue, May 24, 2011 at 3:50 PM, Kim Lester <kim at dfusion.com.au> wrote:
> For review
>
> https://github.com/zeromq/czmq/pull/3
> _______________________________________________
> 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