Commit e895607c authored by Martin Sustrik's avatar Martin Sustrik

ENETUNREACH is a valid error from connect

This patch fixed the JIRA issue 223
Signed-off-by: 's avatarMartin Sustrik <sustrik@250bpm.com>
parent 970798ff
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment