[zeromq-dev] PUB/SUB overload: duplicate messages

Pieter Hintjens ph at imatix.com
Wed Jan 19 21:10:14 CET 2011

Hi Andreas,

Your publisher code looks accurate but it is rather verbose. You might
read the Guide and use that style for C code, it'll give you programs
of 1/6th the size, which is much easier for anyone trying to help
debug this.  At least when you send test cases to this list, less is
more.  I'd investigate your code but have no appetite to wade through

You should make a _minimal_ test case that reproduces the error
systematically, and with that we can (a) confirm it happens and (b)
debug the code to tell whether it's an application error or a 0MQ

Pieter Hintjens

On Wed, Jan 19, 2011 at 7:26 PM, Zoufal Andreas
<Andreas.Zoufal at ait.ac.at> wrote:
> Hi,
> I'm testing the ZeroMQ library regarding robustness. I let send publishers messages out as fast as possible to force an overload on subscribers side. I would expect less received messages, but what I get is very surprising: I always get the right number of messages, but some (more or less) are duplicated. Is it a bug or can I do something to improve the robustness?
> Source code: http://pastebin.com/mbTt7XZF
> I can zip the demo app and mail it if required.
> Kind regards,
> Andi
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev

More information about the zeromq-dev mailing list