diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2025-10-15 10:20:04 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2025-10-29 06:20:49 -0700 |
| commit | adaef433d24ce88230fe64ce20214d695cf83bc0 (patch) | |
| tree | 51ade56232fc8d0a75bc31d20788c45d9217d8cb /lib/std/debug | |
| parent | d3c4158a1053e5322d137f61bf4bc643650a4741 (diff) | |
| download | zig-adaef433d24ce88230fe64ce20214d695cf83bc0.tar.gz zig-adaef433d24ce88230fe64ce20214d695cf83bc0.zip | |
std.net.HostName.connect: rework to avoid waiting for DNS
The previous implementation would eagerly attempt TCP connection upon
receiving a DNS reply, but it would still wait for all the DNS results
before returning from the function.
This implementation returns immediately upon first successful TCP
connection, canceling not only in-flight TCP connection attempts but
also unfinished DNS queries.
Diffstat (limited to 'lib/std/debug')
0 files changed, 0 insertions, 0 deletions
