mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-13 02:42:58 +01:00
Merge pull request #1511 from sorenh/linger_fix
Avoid terminating connections prematurely
This commit is contained in:
commit
84a93d4251
@ -460,7 +460,8 @@ void zmq::session_base_t::process_term (int linger_)
|
||||
// TODO: Should this go into pipe_t::terminate ?
|
||||
// In case there's no engine and there's only delimiter in the
|
||||
// pipe it wouldn't be ever read. Thus we check for it explicitly.
|
||||
pipe->check_read ();
|
||||
if (!engine)
|
||||
pipe->check_read ();
|
||||
}
|
||||
|
||||
if (zap_pipe != NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user