mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-13 02:42:58 +01:00
issue 40 - nbytes != -1 (tcp_socket.cpp:216)
This commit is contained in:
parent
fd707fedc5
commit
1f61c87ac5
@ -210,7 +210,8 @@ int zmq::tcp_socket_t::read (void *data, int size)
|
||||
return 0;
|
||||
|
||||
// Signalise peer failure.
|
||||
if (nbytes == -1 && (errno == ECONNRESET || errno == ECONNREFUSED))
|
||||
if (nbytes == -1 && (errno == ECONNRESET || errno == ECONNREFUSED ||
|
||||
errno == ETIMEDOUT))
|
||||
return -1;
|
||||
|
||||
errno_assert (nbytes != -1);
|
||||
|
Loading…
Reference in New Issue
Block a user