Skip to content

Commit 0a619c6

Browse files
johnLateandrewrk
authored andcommitted
fix type mismatch in std.net.StreamServer
Parameter in std.os.listen is u31. Fixes #6775
1 parent c0fa596 commit 0a619c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/std/net.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1573,7 +1573,7 @@ fn dnsParseCallback(ctx: dpc_ctx, rr: u8, data: []const u8, packet: []const u8)
15731573

15741574
pub const StreamServer = struct {
15751575
/// Copied from `Options` on `init`.
1576-
kernel_backlog: u32,
1576+
kernel_backlog: u31,
15771577
reuse_address: bool,
15781578

15791579
/// `undefined` until `listen` returns successfully.
@@ -1585,7 +1585,7 @@ pub const StreamServer = struct {
15851585
/// How many connections the kernel will accept on the application's behalf.
15861586
/// If more than this many connections pool in the kernel, clients will start
15871587
/// seeing "Connection refused".
1588-
kernel_backlog: u32 = 128,
1588+
kernel_backlog: u31 = 128,
15891589

15901590
/// Enable SO_REUSEADDR on the socket.
15911591
reuse_address: bool = false,

0 commit comments

Comments
 (0)