From aedf3f808befd8cf32a16e34b907c60c79eabfd7 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Mon, 19 Jul 2010 08:38:24 +0200 Subject: EHOSTUNREACH is a valid return value from recv() --- src/tcp_socket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3