mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-16 18:56:55 +02: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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user