mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-10 07:56:09 +00:00
ENETUNREACH is a valid error from connect
This patch fixed the JIRA issue 223 Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
This commit is contained in:
parent
970798ff98
commit
e895607ca7
@ -295,7 +295,8 @@ zmq::fd_t zmq::tcp_connecter_t::connect ()
|
|||||||
// Networking problems are OK. No need to assert.
|
// Networking problems are OK. No need to assert.
|
||||||
errno = err;
|
errno = err;
|
||||||
errno_assert (errno == ECONNREFUSED || errno == ECONNRESET ||
|
errno_assert (errno == ECONNREFUSED || errno == ECONNRESET ||
|
||||||
errno == ETIMEDOUT || errno == EHOSTUNREACH);
|
errno == ETIMEDOUT || errno == EHOSTUNREACH ||
|
||||||
|
errno == ENETUNREACH);
|
||||||
|
|
||||||
return retired_fd;
|
return retired_fd;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user