[zeromq-dev] PUB-SUB Missing Message
Pieter Hintjens
ph at imatix.com
Tue Mar 29 21:05:59 CEST 2011
On Tue, Mar 29, 2011 at 8:08 PM, Shonari Knibbs <s.knibbs at gmail.com> wrote:
> I've run into the problem of missing messages at the subscriber. I was
> wondering if I am doing this correctly...
At first sight the code looks OK, it's one thread and you sleep for 1
second after connecting, before starting to publish. You then send and
recv lock-step, so the recv should get each message.
I'd suggest tracing whether poll returns ready-to-read on the socket.
> I am using libzmq.dll 2.1.3. The pastebin code is in C# and was tested
> with Visual Studio 2008. The included C# binding is just a one-to-one
> copy of the zmq api.
Any reason you're not using the clrzmq2 API? Just curious.
-Pieter
More information about the zeromq-dev
mailing list