gonzalo diethelm wrote:

> Ok, that makes perfect sense now. And the reason this is not apparent
> for Upstream / Downstream sockets is because they queue any unsent
> messages, so all messages are eventually sent after a successful
> reconnection, right?

Exactly.

> So I guess it is not a bad idea to always add a small sleep time (say,
> 200 ms) after binding to a PUB socket. What do you think?

Why not. That way you'll guarantee that SUBs have some time to connect 
before actual transmission begins.

However, don't expect it to be 100% reliable. Say a hick-up in the 
network that would delay connection establishment by 200ms would cause 
the same problem.

Martin


_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to