mirror of
https://github.com/ziglang/zig.git
synced 2026-11-22 04:37:39 -05:00
os/linux: handle ECONNRESET for recv
This commit is contained in:
1 parent
df0f7f4692
commit
4ce212739b
1 file changed
+1
@@ -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),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user