Skip to content

Commit 8db1aa2

Browse files
kivikakkikskuh
authored andcommitted
sendto: ConnectionRefused isn't a valid Send.
1 parent 805ce63 commit 8db1aa2

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

network.zig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,6 @@ pub const Socket = struct {
761761
.AGAIN => return error.WouldBlock,
762762
.ALREADY => return error.FastOpenAlreadyInProgress,
763763
.BADF => unreachable, // always a race condition
764-
.CONNREFUSED => return error.ConnectionRefused,
765764
.CONNRESET => return error.ConnectionResetByPeer,
766765
.DESTADDRREQ => unreachable, // The socket is not connection-mode, and no peer address is set.
767766
.FAULT => unreachable, // An invalid user space address was specified for an argument.

0 commit comments

Comments
 (0)