summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2010-07-19 08:38:24 +0200
committerMartin Sustrik <sustrik@250bpm.com>2010-07-19 08:38:24 +0200
commitaedf3f808befd8cf32a16e34b907c60c79eabfd7 (patch)
treef796535812469af5401de3bb8d2964d5c8d31cb5 /src
parent269904361b565efa54a106e3eda96091320439bd (diff)
EHOSTUNREACH is a valid return value from recv()
Diffstat (limited to 'src')
-rw-r--r--src/tcp_socket.cpp2
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);