Re: [zeromq-dev] PUB/SUB missed initial message even using monitor events (possibly just #2267, but not sure)

2023-02-06 Thread Jason Heeris
On Mon, 6 Feb 2023 at 23:26, Bill Torpey wrote: > If you have pub sockets connecting to subs, then probably yes. [...] When a > sub connects to a pub, the sub’s subscriptions are sent along with the > connection request. So when the connection is made, the pub already has the > sub’s

Re: [zeromq-dev] PUB/SUB missed initial message even using monitor events (possibly just #2267, but not sure)

2023-02-06 Thread James Harvey
If you are only interested in synchronising flow with the first subscriber you can use an XPUB socket. With XPUB you can read the actual subscription message off the pub socket so you know for sure the subscriber is connected (and the subscribe subject) If you want to know when duplicate

Re: [zeromq-dev] PUB/SUB missed initial message even using monitor events (possibly just #2267, but not sure)

2023-02-06 Thread Bill Torpey
Hi Jason: > Is my example code simply demonstrating this known issue? If you have pub sockets connecting to subs, then probably yes. The issue is that the HANDSHAKE_SUCCEEDED only tells you the sockets have connected, but not that subscription information has been exchanged. When a sub