diff --git a/lib/std/os.zig b/lib/std/os.zig index a58ca5333b..5af3f444a9 100644 --- a/lib/std/os.zig +++ b/lib/std/os.zig @@ -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,