mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-29 20:59:47 +01:00
Move the pipe termination code to socket_base_t
So far, the pipe termination code was spread among socket type classes, fair queuer, load balancer, etc. This patch moves all the associated logic to a single place. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
This commit is contained in:
@@ -108,7 +108,7 @@ bool zmq::pipe_t::check_read ()
|
||||
|
||||
// If pipe_term was already received but wasn't processed because
|
||||
// of pending messages, we can ack it now.
|
||||
if (terminating)
|
||||
if (term_recvd)
|
||||
send_pipe_term_ack (peer);
|
||||
|
||||
return false;
|
||||
@@ -133,7 +133,7 @@ bool zmq::pipe_t::read (msg_t *msg_)
|
||||
|
||||
// If pipe_term was already received but wasn't processed because
|
||||
// of pending messages, we can ack it now.
|
||||
if (terminating)
|
||||
if (term_recvd)
|
||||
send_pipe_term_ack (peer);
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user