From 97ff9693fe781780b51b4947fc30e0ccf0a0073d Mon Sep 17 00:00:00 2001 From: binarycraft007 Date: Tue, 25 Aug 2026 22:09:58 +0200 Subject: [PATCH] add missing IO_TIMEOUT and REMOTE_DISCONNECT errors for windows --- lib/std/Io/Threaded.zig | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/std/Io/Threaded.zig b/lib/std/Io/Threaded.zig index 9cb2dccf8f9b116ed44c2a23ca22876f9570b09c..f4d7aeca42e1006a49fed13993ba123180260a30 100644 --- a/lib/std/Io/Threaded.zig +++ b/lib/std/Io/Threaded.zig @@ -12939,7 +12939,8 @@ fn netReadWindows(socket_handle: net.Socket.Handle, data: [][]u8) net.Stream.Rea .SUCCESS => return iosb.Information, .CANCELLED => unreachable, .INSUFFICIENT_RESOURCES => return error.SystemResources, - .CONNECTION_RESET => return error.ConnectionResetByPeer, + .CONNECTION_RESET, .REMOTE_DISCONNECT => return error.ConnectionResetByPeer, + .IO_TIMEOUT => return error.ConnectionTimedOut, else => |status| return windows.unexpectedStatus(status), } } @@ -13448,7 +13449,8 @@ fn netWriteWindows( .SUCCESS => return iosb.Information, .CANCELLED => unreachable, .INSUFFICIENT_RESOURCES => return error.SystemResources, - .CONNECTION_RESET => return error.ConnectionResetByPeer, + .CONNECTION_RESET, .REMOTE_DISCONNECT => return error.ConnectionResetByPeer, + .IO_TIMEOUT => return error.ConnectionTimedOut, else => |status| return windows.unexpectedStatus(status), } } -- 2.54.0