| author | |
| committer | |
| log | 7988f79528e2105a83bc00b91866b639b181dd51 |
| tree | 2c6bcb15da9964f411254c8ffe0713c956ade140 |
| parent | 1280033c27f2d3276263b52018c0bd911dbf5950 |
This matches the error used in lookupDns when ResolvConf.timeout_seconds has elapsed as well as what EAI_AGAIN gets mapped to when using getaddrinfo3 files changed, 1 insertions(+), 3 deletions(-)
lib/std/Io/Threaded.zig+1-1| ... | @@ -13982,7 +13982,7 @@ fn netLookupFallible( | ... | @@ -13982,7 +13982,7 @@ fn netLookupFallible( |
| 13982 | .DNS_ERROR_INVALID_NAME_CHAR, | 13982 | .DNS_ERROR_INVALID_NAME_CHAR, |
| 13983 | .DNS_ERROR_RECORD_DOES_NOT_EXIST, | 13983 | .DNS_ERROR_RECORD_DOES_NOT_EXIST, |
| 13984 | => return error.UnknownHostName, | 13984 | => return error.UnknownHostName, |
| 13985 | .TIMEOUT => return error.Timeout, | 13985 | .TIMEOUT => return error.NameServerFailure, |
| 13986 | else => |err| return windows.unexpectedError(err), | 13986 | else => |err| return windows.unexpectedError(err), |
| 13987 | } | 13987 | } |
| 13988 | } | 13988 | } |
lib/std/Io/net/HostName.zig-1| ... | @@ -156,7 +156,6 @@ pub const LookupError = error{ | ... | @@ -156,7 +156,6 @@ pub const LookupError = error{ |
| 156 | NoAddressReturned, | 156 | NoAddressReturned, |
| 157 | /// Failed to open or read "/etc/hosts" or "/etc/resolv.conf". | 157 | /// Failed to open or read "/etc/hosts" or "/etc/resolv.conf". |
| 158 | DetectingNetworkConfigurationFailed, | 158 | DetectingNetworkConfigurationFailed, |
| 159 | Timeout, | ||
| 160 | } || IpAddress.BindError || Io.Cancelable; | 159 | } || IpAddress.BindError || Io.Cancelable; |
| 161 | 160 | ||
| 162 | pub const LookupResult = union(enum) { | 161 | pub const LookupResult = union(enum) { |
lib/std/Io/net/test.zig-1| ... | @@ -173,7 +173,6 @@ test "resolve DNS" { | ... | @@ -173,7 +173,6 @@ test "resolve DNS" { |
| 173 | }) catch |err| switch (err) { | 173 | }) catch |err| switch (err) { |
| 174 | error.UnknownHostName => return error.SkipZigTest, | 174 | error.UnknownHostName => return error.SkipZigTest, |
| 175 | error.NameServerFailure => return error.SkipZigTest, | 175 | error.NameServerFailure => return error.SkipZigTest, |
| 176 | error.Timeout => return error.SkipZigTest, | ||
| 177 | else => |e| return e, | 176 | else => |e| return e, |
| 178 | }; | 177 | }; |
| 179 | 178 |