mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-09 07:16:04 +00:00
Merge pull request #1582 from pengweichu/master
Fixed the bug which cause the application crashed when use TCP connec… Fixes #1581
This commit is contained in:
commit
2452c598b7
@ -355,7 +355,8 @@ zmq::fd_t zmq::tcp_connecter_t::connect ()
|
||||
&& err != WSAENETDOWN
|
||||
&& err != WSAEACCES
|
||||
&& err != WSAEINVAL
|
||||
&& err != WSAEADDRINUSE)
|
||||
&& err != WSAEADDRINUSE
|
||||
&& err != WSAEADDRNOTAVAIL)
|
||||
{
|
||||
wsa_assert_no (err);
|
||||
}
|
||||
@ -375,7 +376,8 @@ zmq::fd_t zmq::tcp_connecter_t::connect ()
|
||||
errno == EHOSTUNREACH ||
|
||||
errno == ENETUNREACH ||
|
||||
errno == ENETDOWN ||
|
||||
errno == EINVAL);
|
||||
errno == EINVAL ||
|
||||
errno == EADDRNOTAVAIL);
|
||||
return retired_fd;
|
||||
}
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user