[zeromq-dev] Issue 270
ph at imatix.com
Wed Nov 6 23:22:45 CET 2013
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)
On Wed, Nov 6, 2013 at 11:16 PM, Pieter Hintjens <ph at imatix.com> 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 <ph at imatix.com> 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
>> Here's an example:
>> If you replace the zmq_poll with a sleep, the test fails as we know.
> Pieter Hintjens
> CEO of iMatix.com
> Founder of ZeroMQ community
> blog: http://hintjens.com
CEO of iMatix.com
Founder of ZeroMQ community
More information about the zeromq-dev