[zeromq-dev] Freelance protocol 3 ambiguties

Pieter Hintjens ph at imatix.com
Mon Oct 3 14:54:45 CEST 2011

Hi Johan,

Nice catch on the comments, that section on ping silence is wrong.
I've fixed it, and am republishing the Guide.


On Mon, Oct 3, 2011 at 5:00 AM, Johan Ström <johan at stromnet.se> wrote:
> Hi!
> I'm studying the FLP model 3 API implementation (http://zguide.zeromq.org/page:all#Model-Three-Complex-and-Nasty -> flcliapi: Freelance client API in C).
> In the comments right after the code, it's mentioned that the implementation is making use of "ping silence". However, looking at the actual code I fail to see how that would work?
> For every loop iteration, ping's are always sent to all the servers, given that the server's ping_at have been passed. ping_at is also updated on every ping sent.
> I've been reading the code up and down, but I fail to see how it would stop sending pings after server->expires is passed. A server isn't even "expired" unless there is an active request being processed.
> Am I missing something, or are the comments regarding the code wrong?
> On another note, thank you all for ZeroMQ, it is a really really lovely library! :)
> Best Regards
> Johan
> _______________________________________________
> 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