mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 07:32:44 +00:00
Return error.WouldBlock when connect returns .WSAEWOULDBLOCK
This commit is contained in:
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,
|
||||
|
Loading…
Reference in New Issue
Block a user