authorgravatar for inbox-121@johnlate.scnr.netjohnLate <inbox-121@johnlate.scnr.net> 2020-10-23 07:18:28+02:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-10-25 21:18:24-04:00
log0a619c68a651db80c68cfe3a0f0a9682a845f7e7
tree3909251c6e61e4b00e05d7aec1e6cb5f0579528d
parentc0fa5963ee692c9d4c46834978c274559d727ff5

fix type mismatch in std.net.StreamServer

Parameter in std.os.listen is u31. Fixes ziglang#6775

1 files changed, 2 insertions(+), 2 deletions(-)

lib/std/net.zig+2-2
...@@ -1573,7 +1573,7 @@ fn dnsParseCallback(ctx: dpc_ctx, rr: u8, data: []const u8, packet: []const u8)...@@ -1573,7 +1573,7 @@ fn dnsParseCallback(ctx: dpc_ctx, rr: u8, data: []const u8, packet: []const u8)
15731573
1574pub const StreamServer = struct {1574pub const StreamServer = struct {
1575 /// Copied from `Options` on `init`.1575 /// Copied from `Options` on `init`.
1576 kernel_backlog: u32,1576 kernel_backlog: u31,
1577 reuse_address: bool,1577 reuse_address: bool,
15781578
1579 /// `undefined` until `listen` returns successfully.1579 /// `undefined` until `listen` returns successfully.
...@@ -1585,7 +1585,7 @@ pub const StreamServer = struct {...@@ -1585,7 +1585,7 @@ pub const StreamServer = struct {
1585 /// How many connections the kernel will accept on the application's behalf.1585 /// How many connections the kernel will accept on the application's behalf.
1586 /// If more than this many connections pool in the kernel, clients will start1586 /// If more than this many connections pool in the kernel, clients will start
1587 /// seeing "Connection refused".1587 /// seeing "Connection refused".
1588 kernel_backlog: u32 = 128,1588 kernel_backlog: u31 = 128,
15891589
1590 /// Enable SO_REUSEADDR on the socket.1590 /// Enable SO_REUSEADDR on the socket.
1591 reuse_address: bool = false,1591 reuse_address: bool = false,