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