authorgravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2020-05-06 12:52:26+03:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2020-05-06 12:52:26+03:00
log0e30edd8d099f005e3d1ee4de1d130c6e5c69295
treee6f521ba0743d6797e26b6d4ff3ebda64b13d5cd
parent06e6d39c6c03989c117178033ef1188ded58a1d6
signature Signed by PGP key 4AEE18F83AFDEB23

std: handle ConnectionTimedOut in switch

regression from #5266 closes #5270

1 files changed, 1 insertions(+), 0 deletions(-)

lib/std/elf.zig+1
......@@ -548,6 +548,7 @@ fn preadNoEof(file: std.fs.File, buf: []u8, offset: u64) !void {
548548 error.BrokenPipe => return error.UnableToReadElfFile,
549549 error.Unseekable => return error.UnableToReadElfFile,
550550 error.ConnectionResetByPeer => return error.UnableToReadElfFile,
551 error.ConnectionTimedOut => return error.UnableToReadElfFile,
551552 error.InputOutput => return error.FileSystem,
552553 error.Unexpected => return error.Unexpected,
553554 error.WouldBlock => return error.Unexpected,