16 lines
610 B
Diff
16 lines
610 B
Diff
|
Index: zeromq-4.2.3/src/xpub.cpp
|
||
|
===================================================================
|
||
|
--- zeromq-4.2.3.orig/src/xpub.cpp
|
||
|
+++ zeromq-4.2.3/src/xpub.cpp
|
||
|
@@ -129,8 +136,9 @@ void zmq::xpub_t::xread_activated (pipe_
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
- else {
|
||
|
+ else if (options.type != ZMQ_PUB) {
|
||
|
// Process user message coming upstream from xsub socket
|
||
|
+ // but not if the type is PUB, which never processes user messages
|
||
|
pending_data.push_back (blob_t (data, size));
|
||
|
if (metadata)
|
||
|
metadata->add_ref ();
|