mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-26 18:42:43 +01:00
Consistency of Windows TCP tuning assertions
Treat ECONNRESET, ENETRESET and EINTR as non-fatal failures in TCP Tuning on Windows as they are in the Unixes. Also adds ENETRESET to the Unix list that was missing.
This commit is contained in:
@@ -321,11 +321,14 @@ void zmq::tcp_assert_tuning_error(zmq::fd_t s_, int rc_)
|
||||
zmq_assert (rc == 0);
|
||||
if (err != 0) {
|
||||
wsa_assert (err == WSAECONNREFUSED
|
||||
|| err == WSAETIMEDOUT
|
||||
|| err == WSAECONNRESET
|
||||
|| err == WSAECONNABORTED
|
||||
|| err == WSAEINTR
|
||||
|| err == WSAETIMEDOUT
|
||||
|| err == WSAEHOSTUNREACH
|
||||
|| err == WSAENETUNREACH
|
||||
|| err == WSAENETDOWN
|
||||
|| err == WSAENETRESET
|
||||
|| err == WSAEACCES
|
||||
|| err == WSAEINVAL
|
||||
|| err == WSAEADDRINUSE);
|
||||
@@ -346,6 +349,7 @@ void zmq::tcp_assert_tuning_error(zmq::fd_t s_, int rc_)
|
||||
errno == EHOSTUNREACH ||
|
||||
errno == ENETUNREACH ||
|
||||
errno == ENETDOWN ||
|
||||
errno == ENETRESET ||
|
||||
errno == EINVAL);
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user