| author | |
| committer | |
| log | 1280033c27f2d3276263b52018c0bd911dbf5950 |
| tree | fcb71addbfdefb9343acc214a063f7f8211c4e70 |
| parent | ba0cfda93dabd07ded441ecf475fc28a90bd495e |
3 files changed, 3 insertions(+), 0 deletions(-)
lib/std/Io/Threaded.zig+1| ... | @@ -13982,6 +13982,7 @@ fn netLookupFallible( | ... | @@ -13982,6 +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 | else => |err| return windows.unexpectedError(err), | 13986 | else => |err| return windows.unexpectedError(err), |
| 13986 | } | 13987 | } |
| 13987 | } | 13988 | } |
lib/std/Io/net/HostName.zig+1| ... | @@ -156,6 +156,7 @@ pub const LookupError = error{ | ... | @@ -156,6 +156,7 @@ 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, | ||
| 159 | } || IpAddress.BindError || Io.Cancelable; | 160 | } || IpAddress.BindError || Io.Cancelable; |
| 160 | 161 | ||
| 161 | pub const LookupResult = union(enum) { | 162 | pub const LookupResult = union(enum) { |
lib/std/Io/net/test.zig+1| ... | @@ -173,6 +173,7 @@ test "resolve DNS" { | ... | @@ -173,6 +173,7 @@ 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, | ||
| 176 | else => |e| return e, | 177 | else => |e| return e, |
| 177 | }; | 178 | }; |
| 178 | 179 |