Commit 1f61c87a authored by Martin Hurton's avatar Martin Hurton

issue 40 - nbytes != -1 (tcp_socket.cpp:216)

parent fd707fed
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment