diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2011-04-29 07:23:30 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2011-04-29 07:23:30 +0200 |
commit | 96213d5735829bfbebfb544a584a34bb8c0081fa (patch) | |
tree | 0641a74159940cfbcb317ebcacce5fc58ed0a8bd /src | |
parent | b2eb84f8ca2fc2b8a2af6cd2c54c0abc4535cfc4 (diff) |
WSAENETUNREACH is a valid networking error
Till now, 0MQ asserted on Windows when connect () returned
WSAENETUNREACH.
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/tcp_connecter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tcp_connecter.cpp b/src/tcp_connecter.cpp index f00d478..01463c0 100644 --- a/src/tcp_connecter.cpp +++ b/src/tcp_connecter.cpp @@ -118,7 +118,8 @@ zmq::fd_t zmq::tcp_connecter_t::connect () // rather than 0MQ bug. errno = err; errno_assert (errno == WSAECONNREFUSED || errno == WSAETIMEDOUT || - errno == WSAECONNABORTED || errno == WSAEHOSTUNREACH); + errno == WSAECONNABORTED || errno == WSAEHOSTUNREACH || + errno == WSAENETUNREACH); return retired_fd; } |