On Fri, May 13, 2011 at 12:36 AM, Benn Bollay <[email protected]> wrote:

> Using bog standard code (see http://pastebin.com/W3AvhQn5), and then forcing
> the tcp connection between the publisher and the subscriber to be reset, I
> am seeing duplicate messages on the subscriber’s side.  I’ve observed this
> behavior both in 2.0 and in 2.1.7, and in C and python code.

This is normal and expected. The PUB socket holds a small queue of
outgoing messages so that new subscribers get some history (10
messages or so, iirc). The SUB socket gets its messages, and then you
break the connection and the SUB socket reconnects, thus appears to
the PUB as a new subscriber.

-Pieter
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to