mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 14:23:09 +00:00
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.