diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2010-03-27 09:24:38 +0100 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2010-03-27 09:24:38 +0100 |
commit | ed291b02516ac5c9fe01f328d505305d36fe6319 (patch) | |
tree | 26c15f812a72bf06a05279e6629c91e7f3c41ebd /src/pub.cpp | |
parent | 0b9897b141ae03ccd00132a638d030a2521cf5b3 (diff) |
multi-part messages work with PUB/SUB
Diffstat (limited to 'src/pub.cpp')
-rw-r--r-- | src/pub.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pub.cpp b/src/pub.cpp index 6f92cd2..1e86b28 100644 --- a/src/pub.cpp +++ b/src/pub.cpp @@ -170,7 +170,8 @@ bool zmq::pub_t::write (class writer_t *pipe_, zmq_msg_t *msg_) pipes.swap (pipes.index (pipe_), active); return false; } - pipe_->flush (); + if (!(msg_->flags & ZMQ_MSG_TBC)) + pipe_->flush (); return true; } |