[zeromq-dev] ZMQ 3.x: Receiving several times the same message

Ian Barber ian.barber at gmail.com
Mon Sep 12 13:19:17 CEST 2011

On Mon, Sep 12, 2011 at 11:57 AM, Emmanuel TAUREL <taurel at esrf.fr> wrote:

> Am I doing something wrong / unsupported if I connect / subscribe the
> same socket several times to the same publisher?
> Thank's for your answers
Sort of, you're making more that one connection, so if you have 3
connections to the same publisher, you'll get the message three times. When
you do the resubscribe, you actually subscribe both connections. So even
though you've unsubbed on the first one the filter gets replaced, and you
have 2 connections with 2 valid subscriptions, so you get the message twice.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110912/e1ad9baf/attachment-0001.htm>

More information about the zeromq-dev mailing list