diff options
| author | Martin Lucina <martin@lucina.net> | 2012-01-23 08:53:57 +0100 | 
|---|---|---|
| committer | Martin Lucina <martin@lucina.net> | 2012-01-23 08:53:57 +0100 | 
| commit | b593ea30833ad5dcacb9076c988aec31b0cf26ec (patch) | |
| tree | 3d0c6f1dadfa2d947cf23f6109bb27b01ab202af /src/tcp_connecter.cpp | |
| parent | cbaa7cfa93893876e4fd8794b6ea39f4d245b6b5 (diff) | |
Imported Upstream version 2.1.7upstream/2.1.7
Diffstat (limited to 'src/tcp_connecter.cpp')
| -rw-r--r-- | src/tcp_connecter.cpp | 9 | 
1 files changed, 5 insertions, 4 deletions
diff --git a/src/tcp_connecter.cpp b/src/tcp_connecter.cpp index 0c1581d..71b362b 100644 --- a/src/tcp_connecter.cpp +++ b/src/tcp_connecter.cpp @@ -118,11 +118,12 @@ zmq::fd_t zmq::tcp_connecter_t::connect ()          //  Assert that the error was caused by the networking problems          //  rather than 0MQ bug. -        errno = err; -        errno_assert (errno == WSAECONNREFUSED || errno == WSAETIMEDOUT || -            errno == WSAECONNABORTED || errno == WSAEHOSTUNREACH); +        if (err == WSAECONNREFUSED || err == WSAETIMEDOUT || +              err == WSAECONNABORTED || err == WSAEHOSTUNREACH || +              err == WSAENETUNREACH || err == WSAENETDOWN) +            return retired_fd; -        return retired_fd; +        wsa_assert_no (err);      }      //  Return the newly connected socket.  | 
