aboutsummaryrefslogtreecommitdiff
path: root/lib/std
diff options
context:
space:
mode:
authorjohnLate <inbox-121@johnlate.scnr.net>2020-10-23 07:18:28 +0200
committerAndrew Kelley <andrew@ziglang.org>2020-10-25 21:18:24 -0400
commit0a619c68a651db80c68cfe3a0f0a9682a845f7e7 (patch)
tree3909251c6e61e4b00e05d7aec1e6cb5f0579528d /lib/std
parentc0fa5963ee692c9d4c46834978c274559d727ff5 (diff)
downloadzig-0a619c68a651db80c68cfe3a0f0a9682a845f7e7.tar.gz
zig-0a619c68a651db80c68cfe3a0f0a9682a845f7e7.zip
fix type mismatch in std.net.StreamServer
Parameter in std.os.listen is u31. Fixes ziglang#6775
Diffstat (limited to 'lib/std')
-rw-r--r--lib/std/net.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/net.zig b/lib/std/net.zig
index 5ac22948fa..d107fb36ae 100644
--- a/lib/std/net.zig
+++ b/lib/std/net.zig
@@ -1573,7 +1573,7 @@ fn dnsParseCallback(ctx: dpc_ctx, rr: u8, data: []const u8, packet: []const u8)
pub const StreamServer = struct {
/// Copied from `Options` on `init`.
- kernel_backlog: u32,
+ kernel_backlog: u31,
reuse_address: bool,
/// `undefined` until `listen` returns successfully.
@@ -1585,7 +1585,7 @@ pub const StreamServer = struct {
/// How many connections the kernel will accept on the application's behalf.
/// If more than this many connections pool in the kernel, clients will start
/// seeing "Connection refused".
- kernel_backlog: u32 = 128,
+ kernel_backlog: u31 = 128,
/// Enable SO_REUSEADDR on the socket.
reuse_address: bool = false,