mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
os/linux: handle ECONNRESET for recv
This commit is contained in:
parent
df0f7f4692
commit
4ce212739b
@ -5610,6 +5610,7 @@ pub fn recvfrom(
|
||||
EAGAIN => return error.WouldBlock,
|
||||
ENOMEM => return error.SystemResources,
|
||||
ECONNREFUSED => return error.ConnectionRefused,
|
||||
ECONNRESET => return error.ConnectionResetByPeer,
|
||||
else => |err| return unexpectedErrno(err),
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user