mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-27 15:41:05 +08:00
Merge pull request #151 from bluca/lingex_fix_backport
Problem: connection might terminate prematurely
This commit is contained in:
commit
284c743814
2
NEWS
2
NEWS
@ -7,6 +7,8 @@
|
||||
|
||||
* Fixed #1807 - build broken with GCC 6.
|
||||
|
||||
* Fixed #1877 - Avoid terminating connections prematurely
|
||||
|
||||
|
||||
0MQ version 4.0.7 stable, released on 2015/06/15
|
||||
================================================
|
||||
|
@ -421,7 +421,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…
x
Reference in New Issue
Block a user