OK, so this works. - use XSUB instead of SUB - after XSUB connects allow 20 msec for connection to establish - send subscription manually, as message starting with 0x01 - allow 20 msec for publisher to receive subscription (if you need to synch it)
-Pieter On Wed, Nov 6, 2013 at 11:16 PM, Pieter Hintjens <[email protected]> wrote: > Sorry, I spoke too soon. While the zmq_poll works in some cases, it > does not work consistently. > > I'm trying something else, which is to use an XSUB socket and send the > subscription explicitly. > > On Wed, Nov 6, 2013 at 11:03 PM, Pieter Hintjens <[email protected]> wrote: >> Hi Guys, >> >> I stumbled across issue 270 today, aka 559, 248, 550. >> >> A proper fix is waiting for someone willing to fix the plumbing... >> however I've tested the workaround estabroo proposes in 559, and it >> works. >> >> Here's an example: >> >> https://gist.github.com/hintjens/7344533 >> >> If you replace the zmq_poll with a sleep, the test fails as we know. >> >> -Pieter > > > > -- > - > Pieter Hintjens > CEO of iMatix.com > Founder of ZeroMQ community > blog: http://hintjens.com -- - Pieter Hintjens CEO of iMatix.com Founder of ZeroMQ community blog: http://hintjens.com _______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
