aboutsummaryrefslogtreecommitdiff
path: root/lib/std/net.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-09-03 23:52:19 -0700
committerAndrew Kelley <andrew@ziglang.org>2020-09-03 23:52:19 -0700
commit338f155a02b72117ff710f72c8578e7d2f8eb296 (patch)
treea902526d5dc901de7458ef318f52f5ac0dad77e7 /lib/std/net.zig
parentc354f074fa91d3d1672469ba4bbc49a1730e1d01 (diff)
parent88724b2a89157ecc3a8eea03aa0f8a6b66829915 (diff)
downloadzig-338f155a02b72117ff710f72c8578e7d2f8eb296.tar.gz
zig-338f155a02b72117ff710f72c8578e7d2f8eb296.zip
Merge remote-tracking branch 'origin/master' into llvm11
Diffstat (limited to 'lib/std/net.zig')
-rw-r--r--lib/std/net.zig5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/std/net.zig b/lib/std/net.zig
index 10e5b371f8..45d8f07f04 100644
--- a/lib/std/net.zig
+++ b/lib/std/net.zig
@@ -1164,7 +1164,7 @@ fn linuxLookupNameFromDnsSearch(
}
const search = if (rc.search.isNull() or dots >= rc.ndots or mem.endsWith(u8, name, "."))
- &[_]u8{}
+ ""
else
rc.search.span();
@@ -1641,6 +1641,9 @@ pub const StreamServer = struct {
/// by the socket buffer limits, not by the system memory.
SystemResources,
+ /// Socket is not listening for new connections.
+ SocketNotListening,
+
ProtocolFailure,
/// Firewall rules forbid connection.