mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-13 10:52:56 +01:00
ENOTCONN on recv() on TCP socket is treated decently (issue 254)
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
This commit is contained in:
parent
daac9ac5b2
commit
fc17bd4117
@ -360,7 +360,7 @@ int zmq::stream_engine_t::read (void *data_, size_t size_)
|
||||
|
||||
// Signalise peer failure.
|
||||
if (nbytes == -1 && (errno == ECONNRESET || errno == ECONNREFUSED ||
|
||||
errno == ETIMEDOUT || errno == EHOSTUNREACH))
|
||||
errno == ETIMEDOUT || errno == EHOSTUNREACH || errno == ENOTCONN))
|
||||
return -1;
|
||||
|
||||
errno_assert (nbytes != -1);
|
||||
|
Loading…
Reference in New Issue
Block a user