mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-15 07:14:49 +02:00
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.
This commit is contained in:
@@ -318,7 +318,8 @@ zmq::fd_t zmq::tcp_connecter_t::connect ()
|
||||
err == WSAENETUNREACH ||
|
||||
err == WSAENETDOWN ||
|
||||
err == WSAEACCES ||
|
||||
err == WSAEINVAL)
|
||||
err == WSAEINVAL ||
|
||||
err == WSAEADDRINUSE )
|
||||
return retired_fd;
|
||||
wsa_assert_no (err);
|
||||
}
|
||||
|
Reference in New Issue
Block a user