Commit 2452c598 authored by Constantin Rack's avatar Constantin Rack

Merge pull request #1582 from pengweichu/master

Fixed the bug which cause the application crashed when use TCP connec…
Fixes #1581 
parents 0f51190c 5dc8b51c
...@@ -355,7 +355,8 @@ zmq::fd_t zmq::tcp_connecter_t::connect () ...@@ -355,7 +355,8 @@ zmq::fd_t zmq::tcp_connecter_t::connect ()
&& err != WSAENETDOWN && err != WSAENETDOWN
&& err != WSAEACCES && err != WSAEACCES
&& err != WSAEINVAL && err != WSAEINVAL
&& err != WSAEADDRINUSE) && err != WSAEADDRINUSE
&& err != WSAEADDRNOTAVAIL)
{ {
wsa_assert_no (err); wsa_assert_no (err);
} }
...@@ -375,7 +376,8 @@ zmq::fd_t zmq::tcp_connecter_t::connect () ...@@ -375,7 +376,8 @@ zmq::fd_t zmq::tcp_connecter_t::connect ()
errno == EHOSTUNREACH || errno == EHOSTUNREACH ||
errno == ENETUNREACH || errno == ENETUNREACH ||
errno == ENETDOWN || errno == ENETDOWN ||
errno == EINVAL); errno == EINVAL ||
errno == EADDRNOTAVAIL);
return retired_fd; return retired_fd;
} }
#endif #endif
......
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