Commit 96213d57 authored by Martin Sustrik's avatar Martin Sustrik

WSAENETUNREACH is a valid networking error

Till now, 0MQ asserted on Windows when connect () returned
WSAENETUNREACH.
Signed-off-by: 's avatarMartin Sustrik <sustrik@250bpm.com>
parent b2eb84f8
...@@ -118,7 +118,8 @@ zmq::fd_t zmq::tcp_connecter_t::connect () ...@@ -118,7 +118,8 @@ zmq::fd_t zmq::tcp_connecter_t::connect ()
// rather than 0MQ bug. // rather than 0MQ bug.
errno = err; errno = err;
errno_assert (errno == WSAECONNREFUSED || errno == WSAETIMEDOUT || errno_assert (errno == WSAECONNREFUSED || errno == WSAETIMEDOUT ||
errno == WSAECONNABORTED || errno == WSAEHOSTUNREACH); errno == WSAECONNABORTED || errno == WSAEHOSTUNREACH ||
errno == WSAENETUNREACH);
return retired_fd; return retired_fd;
} }
......
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