diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2010-07-19 08:38:24 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2010-07-19 08:38:24 +0200 |
commit | aedf3f808befd8cf32a16e34b907c60c79eabfd7 (patch) | |
tree | f796535812469af5401de3bb8d2964d5c8d31cb5 | |
parent | 269904361b565efa54a106e3eda96091320439bd (diff) |
EHOSTUNREACH is a valid return value from recv()
-rw-r--r-- | src/tcp_socket.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tcp_socket.cpp b/src/tcp_socket.cpp index a392590..c83bba6 100644 --- a/src/tcp_socket.cpp +++ b/src/tcp_socket.cpp @@ -211,7 +211,7 @@ int zmq::tcp_socket_t::read (void *data, int size) // Signalise peer failure. if (nbytes == -1 && (errno == ECONNRESET || errno == ECONNREFUSED || - errno == ETIMEDOUT)) + errno == ETIMEDOUT || errno == EHOSTUNREACH)) return -1; errno_assert (nbytes != -1); |