authorgravatar for elliot.huang.signed@gmail.combinarycraft007 <elliot.huang.signed@gmail.com> 2026-08-25 22:09:58+02:00
committergravatar for squeek502@hotmail.comRyan Liptak <squeek502@hotmail.com> 2026-08-26 23:19:56+02:00
log97ff9693fe781780b51b4947fc30e0ccf0a0073d
treef416c74b42dabd9e009ef65335c43f17ca2d255f
parent54fdc4f5a4622d919328e8252962f0cec1e7e872

add missing IO_TIMEOUT and REMOTE_DISCONNECT errors for windows


1 files changed, 4 insertions(+), 2 deletions(-)

lib/std/Io/Threaded.zig+4-2
...@@ -12939,7 +12939,8 @@ fn netReadWindows(socket_handle: net.Socket.Handle, data: [][]u8) net.Stream.Rea...@@ -12939,7 +12939,8 @@ fn netReadWindows(socket_handle: net.Socket.Handle, data: [][]u8) net.Stream.Rea
12939 .SUCCESS => return iosb.Information,12939 .SUCCESS => return iosb.Information,
12940 .CANCELLED => unreachable,12940 .CANCELLED => unreachable,
12941 .INSUFFICIENT_RESOURCES => return error.SystemResources,12941 .INSUFFICIENT_RESOURCES => return error.SystemResources,
12942 .CONNECTION_RESET => return error.ConnectionResetByPeer,12942 .CONNECTION_RESET, .REMOTE_DISCONNECT => return error.ConnectionResetByPeer,
12943 .IO_TIMEOUT => return error.ConnectionTimedOut,
12943 else => |status| return windows.unexpectedStatus(status),12944 else => |status| return windows.unexpectedStatus(status),
12944 }12945 }
12945}12946}
...@@ -13448,7 +13449,8 @@ fn netWriteWindows(...@@ -13448,7 +13449,8 @@ fn netWriteWindows(
13448 .SUCCESS => return iosb.Information,13449 .SUCCESS => return iosb.Information,
13449 .CANCELLED => unreachable,13450 .CANCELLED => unreachable,
13450 .INSUFFICIENT_RESOURCES => return error.SystemResources,13451 .INSUFFICIENT_RESOURCES => return error.SystemResources,
13451 .CONNECTION_RESET => return error.ConnectionResetByPeer,13452 .CONNECTION_RESET, .REMOTE_DISCONNECT => return error.ConnectionResetByPeer,
13453 .IO_TIMEOUT => return error.ConnectionTimedOut,
13452 else => |status| return windows.unexpectedStatus(status),13454 else => |status| return windows.unexpectedStatus(status),
13453 }13455 }
13454}13456}