Merge pull request #448 from jgm-radez/master

resolve issue 456
This commit is contained in:
Pieter Hintjens 2012-10-27 14:01:48 -07:00
commit 6b45262086

View File

@ -95,7 +95,13 @@ int zmq::xsub_t::xsend (msg_t *msg_, int flags_)
// Process the subscription. // Process the subscription.
if (*data == 1) { if (*data == 1) {
if (subscriptions.add (data + 1, size - 1)) // this used to filter out duplicate subscriptions,
// however this is alread done on the XPUB side and
// doing it here as well breaks ZMQ_XPUB_VERBOSE
// when there are forwarding devices involved
//
//if (subscriptions.add (data + 1, size - 1))
subscriptions.add (data + 1, size - 1);
return dist.send_to_all (msg_, flags_); return dist.send_to_all (msg_, flags_);
} }
else { else {