Commit 0e30edd8d0

Vexu <git@vexu.eu>
2020-05-06 11:52:26
std: handle ConnectionTimedOut in switch
regression from #5266 closes #5270
1 parent 06e6d39
Changed files (1)
lib
lib/std/elf.zig
@@ -548,6 +548,7 @@ fn preadNoEof(file: std.fs.File, buf: []u8, offset: u64) !void {
             error.BrokenPipe => return error.UnableToReadElfFile,
             error.Unseekable => return error.UnableToReadElfFile,
             error.ConnectionResetByPeer => return error.UnableToReadElfFile,
+            error.ConnectionTimedOut => return error.UnableToReadElfFile,
             error.InputOutput => return error.FileSystem,
             error.Unexpected => return error.Unexpected,
             error.WouldBlock => return error.Unexpected,