We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc2c188 commit 64d4ec9Copy full SHA for 64d4ec9
lib/std/posix.zig
@@ -6088,6 +6088,9 @@ pub const SendError = error{
6088
6089
/// The local network interface used to reach the destination is down.
6090
NetworkSubsystemFailed,
6091
+
6092
+ /// The destination address is not listening.
6093
+ ConnectionRefused,
6094
} || UnexpectedError;
6095
6096
pub const SendMsgError = SendError || error{
@@ -6319,7 +6322,6 @@ pub fn send(
6319
6322
error.AddressNotAvailable => unreachable,
6320
6323
error.SocketNotConnected => unreachable,
6321
6324
error.UnreachableAddress => unreachable,
- error.ConnectionRefused => unreachable,
6325
else => |e| return e,
6326
};
6327
}
0 commit comments