[zeromq-dev] pub sub - first messages do not arrive from publisher to subscriber even though publisher is launched after the subscriber

Rick Olson technoweenie at gmail.com
Mon Sep 19 14:22:38 CEST 2011


> However what actually happens is that even that the subscriber is already up
> and running when the publisher is launched , not all of the messages are
> received by the subscriber (a 100 messages will be picked up by the
> subscriber if the publisher will send at least 500 message). It seems that
> the first messages sent by the publisher do not arrive to the subscriber.
> Any ideas?

Try adding a sleep in the publisher between binding a port and sending
the messages.  It looks like it's still connecting the subscriber
while the first message is being published.



More information about the zeromq-dev mailing list