mirror of
				https://github.com/zeromq/libzmq.git
				synced 2025-10-26 02:18:06 +01: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:
		| @@ -309,7 +309,6 @@ int zmq::session_base_t::zap_connect () | |||||||
|     zap_pipe->set_nodelay (); |     zap_pipe->set_nodelay (); | ||||||
|     zap_pipe->set_event_sink (this); |     zap_pipe->set_event_sink (this); | ||||||
|  |  | ||||||
|     new_pipes [1]->set_nodelay (); |  | ||||||
|     send_bind (peer.socket, new_pipes [1], false); |     send_bind (peer.socket, new_pipes [1], false); | ||||||
|  |  | ||||||
|     //  Send empty identity if required by the peer. |     //  Send empty identity if required by the peer. | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Martin Hurton
					Martin Hurton