push: Don't delay pipe termination

This commit is contained in:
Martin Hurton 2015-04-28 07:40:31 +02:00 committed by Pieter Hintjens
parent b589fb98b8
commit 812c2016b1

View File

@ -36,6 +36,9 @@ void zmq::push_t::xattach_pipe (pipe_t *pipe_, bool subscribe_to_all_)
{ {
// subscribe_to_all_ is unused // subscribe_to_all_ is unused
(void)subscribe_to_all_; (void)subscribe_to_all_;
// Don't delay pipe termination as there is no one
// to receive the delimiter.
pipe_->set_nodelay ();
zmq_assert (pipe_); zmq_assert (pipe_);
lb.attach (pipe_); lb.attach (pipe_);