diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2011-06-14 09:58:18 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2011-06-14 09:58:18 +0200 |
commit | e895607ca7a97378f7ccc5ab050fc54fd54a80ad (patch) | |
tree | a69bcc8f5d79bc596769bbac15f21704777b3c9e /src | |
parent | 970798ff98bc9eb7cd84bf8766cc6034a0e88aa4 (diff) |
ENETUNREACH is a valid error from connect
This patch fixed the JIRA issue 223
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 94891b5..9515f55 100644 --- a/src/tcp_connecter.cpp +++ b/src/tcp_connecter.cpp @@ -295,7 +295,8 @@ zmq::fd_t zmq::tcp_connecter_t::connect () // Networking problems are OK. No need to assert. errno = err; errno_assert (errno == ECONNREFUSED || errno == ECONNRESET || - errno == ETIMEDOUT || errno == EHOSTUNREACH); + errno == ETIMEDOUT || errno == EHOSTUNREACH || + errno == ENETUNREACH); return retired_fd; } |