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:
Martin Sustrik 2011-06-14 09:58:18 +02:00
parent 970798ff98
commit e895607ca7

View File

@ -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;
}