[zeromq-dev] PUB connect first, SUB bind after, doesn't work?
Martin Sustrik
sustrik at 250bpm.com
Fri Oct 1 17:12:07 CEST 2010
On 09/28/2010 06:34 PM, Ilja Golshtein wrote:
>> Koert's examples showed the publisher sending in a batch, and it's
>> quite normal these would get lost if the subscriber showed up
>> afterwards. It's very timing dependent. Any test with pub sockets
>> must send a continuous stream, not a single batch.
>
> Is it normal nothing was received and no TCP connection was established?
Yes, if subsriber arrives after message is sent, it won't get it. It's
so called "radio broadcast" model.
> Is it normal if "bind" and "connect" reverted everything is fine?
No. The messages should be dropped even then. It's a bug. Hopefully a
rather benign one.
Martin
More information about the zeromq-dev
mailing list