Commit 5154c544 authored by Matthias Kluwe's avatar Matthias Kluwe

handle WSAEADDRINUSE in tcp_connecter_t::connect

As mentioned on the mailing list, Windows may return WSAEADDRINUSE when binding
(reconnecting) to a port. Added this to the handled error codes as Pieter
suggested.
parent ff6b684a
...@@ -318,7 +318,8 @@ zmq::fd_t zmq::tcp_connecter_t::connect () ...@@ -318,7 +318,8 @@ zmq::fd_t zmq::tcp_connecter_t::connect ()
err == WSAENETUNREACH || err == WSAENETUNREACH ||
err == WSAENETDOWN || err == WSAENETDOWN ||
err == WSAEACCES || err == WSAEACCES ||
err == WSAEINVAL) err == WSAEINVAL ||
err == WSAEADDRINUSE )
return retired_fd; return retired_fd;
wsa_assert_no (err); wsa_assert_no (err);
} }
......
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