0
0
mirror of https://github.com/zeromq/libzmq.git synced 2025-01-15 10:18:01 +08:00

Merge pull request #170 from MarkMartinec/master

Add error code EHOSTDOWN to the list of acceptable error codes.
This commit is contained in:
Luca Boccassi 2017-09-14 15:17:58 +02:00 committed by GitHub
commit 3c3547a432

View File

@ -332,6 +332,7 @@ zmq::fd_t zmq::tcp_connecter_t::connect ()
&& err != WSAETIMEDOUT && err != WSAETIMEDOUT
&& err != WSAECONNABORTED && err != WSAECONNABORTED
&& err != WSAEHOSTUNREACH && err != WSAEHOSTUNREACH
&& err != WSAEHOSTDOWN
&& err != WSAENETUNREACH && err != WSAENETUNREACH
&& err != WSAENETDOWN && err != WSAENETDOWN
&& err != WSAEACCES && err != WSAEACCES
@ -354,6 +355,7 @@ zmq::fd_t zmq::tcp_connecter_t::connect ()
errno == ECONNRESET || errno == ECONNRESET ||
errno == ETIMEDOUT || errno == ETIMEDOUT ||
errno == EHOSTUNREACH || errno == EHOSTUNREACH ||
errno == EHOSTDOWN ||
errno == ENETUNREACH || errno == ENETUNREACH ||
errno == ENETDOWN || errno == ENETDOWN ||
errno == EINVAL); errno == EINVAL);