Return error.WouldBlock when connect returns .WSAEWOULDBLOCK
This commit is contained in:
committed by
Andrew Kelley
parent
9ea2076663
commit
4610360699
@@ -3982,7 +3982,7 @@ pub fn connect(sock: socket_t, sock_addr: *const sockaddr, len: socklen_t) Conne
|
||||
.WSAEINVAL => unreachable,
|
||||
.WSAEISCONN => unreachable,
|
||||
.WSAENOTSOCK => unreachable,
|
||||
.WSAEWOULDBLOCK => unreachable,
|
||||
.WSAEWOULDBLOCK => return error.WouldBlock,
|
||||
.WSAEACCES => unreachable,
|
||||
.WSAENOBUFS => return error.SystemResources,
|
||||
.WSAEAFNOSUPPORT => return error.AddressFamilyNotSupported,
|
||||
|
||||
Reference in New Issue
Block a user