HF RL Explorer

sckHostLookup returns only the first resolved address; missing addresses cause unnecessary connection failures

sckHostLookup returns only the first resolved address; missing addresses cause unnecessary connection failures: a task in LegoFlow-SWE (Harbor dataset). When a hostname resolves to multiple addresses (e.g., IPv4 and IPv6, or several A records), sckHostLookup currently calls getaddrinfo but…

The task

When a hostname resolves to multiple addresses (e.g., IPv4 and IPv6, or several A records), `sckHostLookup` currently calls `getaddrinfo` but discards all results except the very first address. If that first address is unreachable, the connection attempt fails completely, even though other valid addresses are…

Part of Lego-X/LegoFlow-SWE.