mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-14 23:07:59 +02:00
allow XSUB/XPUB to send/recv messages unrelated to sub/unsub (LIBZMQ-490)
zmq::xpub_t::xread_activated() – change to process messages without 0 or 1 prefix, but without affecting subscriptions zmq::xsub_t::xsend() – change to send rather than discard messages without 0 or 1 prefix, but without affecting subscriptions Update documentation
This commit is contained in:
@@ -74,6 +74,9 @@ void zmq::xpub_t::xread_activated (pipe_t *pipe_)
|
||||
if (options.type == ZMQ_XPUB && (unique || (*data && verbose)))
|
||||
pending.push_back (blob_t (data, size));
|
||||
}
|
||||
else /*process message unrelated to sub/unsub*/ {
|
||||
pending.push_back (blob_t (data, size));
|
||||
}
|
||||
|
||||
sub.close ();
|
||||
}
|
||||
|
Reference in New Issue
Block a user