std.os: add missing handling of ECONNRESET in readv

This commit is contained in:
Andrew Kelley
2022-12-30 20:06:13 -07:00
parent 66b07fd672
commit b3c8c383bb

View File

@@ -767,6 +767,7 @@ pub fn readv(fd: fd_t, iov: []const iovec) ReadError!usize {
.ISDIR => return error.IsDir,
.NOBUFS => return error.SystemResources,
.NOMEM => return error.SystemResources,
.CONNRESET => return error.ConnectionResetByPeer,
else => |err| return unexpectedErrno(err),
}
}