mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-10 07:56:09 +00: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.
|
// Signalise peer failure.
|
||||||
if (nbytes == -1 && (errno == ECONNRESET || errno == ECONNREFUSED ||
|
if (nbytes == -1 && (errno == ECONNRESET || errno == ECONNREFUSED ||
|
||||||
errno == ETIMEDOUT || errno == EHOSTUNREACH))
|
errno == ETIMEDOUT || errno == EHOSTUNREACH || errno == ENOTCONN))
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
errno_assert (nbytes != -1);
|
errno_assert (nbytes != -1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user