[zeromq-dev] PUB/SUB message lost if sent after connect()
Arnaud Loonstra
arnaud at sphaero.org
Tue Aug 27 10:03:27 CEST 2019
I think you are dealing with the slow subscriber problem:
http://zguide.zeromq.org/page:all#toc117
Rg,
Arnaud
On 27-08-2019 09:52, Tomaz Beltram wrote:
> Hi,
>
> I use pub/sub pattern to deliver events and have noticed that some
> messages get lost. I make sure that subscriber binds to the socket and
> waits in recv() before the publisher sends the event. I was able to
> reproduce this issue when the publisher calls send() immediately after
> connect(). If there is a 1ms sleep in between two calls the message is
> received. Sample code is here: https://pastebin.com/TjUtfFgp
>
> Is this expected behaviour, bug or am I missing some important socket
> options?
>
> The OS is Ubuntu 18.04 with libzmq5.
>
> wbr Tomaz
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> https://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
More information about the zeromq-dev
mailing list