Merge pull request #1511 from sorenh/linger_fix

Avoid terminating connections prematurely
This commit is contained in:
Constantin Rack 2015-08-06 20:45:45 +02:00
commit 84a93d4251

View File

@ -460,6 +460,7 @@ 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.
if (!engine)
pipe->check_read ();
}