[zeromq-dev] client doesn't receive all messages from server

Pieter Hintjens ph at imatix.com
Wed Nov 28 11:30:04 CET 2012

On Wed, Nov 28, 2012 at 8:14 AM, Alexandr Druzhinin <drug2004 at bk.ru> wrote:

> But I have some question - I take clonecli1 and clonesrv1, run the
> client first and then start the server (all on the same box, ubuntu
> 12.04), then interrupt them with ctrl-c (now the server is the first)
> and the server always put more messages out than clients get in. Except
> when I use a little delay in main loop like:

OK, the problem is that the default HWM of 1,000 means the server will
drop a lot of messages.

I guess I didn't change this when moving from 0MQ/2.x to 3.x. Easy to
fix, add this in clonesrv1 before binding:

    zsocket_set_hwm (publisher, 0);

Thanks for catching this. I've also fixed clonesrv2-5.


More information about the zeromq-dev mailing list