[zeromq-dev] Freelance protocol 3 ambiguties
johan at stromnet.se
Mon Oct 3 12:00:28 CEST 2011
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! :)
More information about the zeromq-dev