From ed291b02516ac5c9fe01f328d505305d36fe6319 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Sat, 27 Mar 2010 09:24:38 +0100 Subject: multi-part messages work with PUB/SUB --- src/pub.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/pub.cpp') 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; } -- cgit v1.2.3