mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-28 16:15:23 +08:00
Resolve issue #939
This bug is caused by fq which can terminate pipe before sending all frames of a message first. So sometimes two messages were mixed and this confused ZAP handler. This patch just modifies one pipe parameter so that socket consumes all messages before dropping the pipe.
This commit is contained in:
parent
7140bf041a
commit
a53d703160
@ -309,7 +309,6 @@ int zmq::session_base_t::zap_connect ()
|
||||
zap_pipe->set_nodelay ();
|
||||
zap_pipe->set_event_sink (this);
|
||||
|
||||
new_pipes [1]->set_nodelay ();
|
||||
send_bind (peer.socket, new_pipes [1], false);
|
||||
|
||||
// Send empty identity if required by the peer.
|
||||
|
Loading…
x
Reference in New Issue
Block a user