[zeromq-dev] PUB/SUB message lost if sent after connect()
Tomaz Beltram
tomaz.beltram at topit.si
Wed Aug 28 15:10:08 CEST 2019
Thanks for explaining this for me. Its exactly what happened in my case and the suggested workaround helps.
wbr Tomaz
On Tue, Aug 27, 2019 at 1:25 AM James Harvey <jamesdillonharvey_at_gmail.com> wrote:
> The following needs to happen (in the background) before you call send().
>
> 1. The connect() establishes the tcp connection to the subscriber
> 2. The subscriber sends its subscription string to the publisher (filtering
> is pub side on all protocols apart from PGM)
>
> If send() happens before this the pub socket will just throw away the
> message as it sees there are no subscribers.
>
> If you want to know when a subscription message has arrived on the
> publisher switch to XPUB and poll the socket for incoming messages.
>
> On Tue, Aug 27, 2019 at 9:05 AM Arnaud Loonstra <arnaud at sphaero.org
<https://lists.zeromq.org/mailman/listinfo/zeromq-dev>> wrote: > > >/I
think you are dealing with the slow subscriber problem: /> >//>
>/http://zguide.zeromq.org/page:all#toc117 /> >//> >/Rg, /> >//>
>/Arnaud /> >//
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20190828/180f4e25/attachment.htm>
More information about the zeromq-dev
mailing list