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
1293912939 .SUCCESS => return iosb.Information,
1294012940 .CANCELLED => unreachable,
1294112941 .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,
1294312944 else => |status| return windows.unexpectedStatus(status),
1294412945 }
1294512946}
......@@ -13448,7 +13449,8 @@ fn netWriteWindows(
1344813449 .SUCCESS => return iosb.Information,
1344913450 .CANCELLED => unreachable,
1345013451 .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,
1345213454 else => |status| return windows.unexpectedStatus(status),
1345313455 }
1345413456}