Draft: selection: balance the choice of IPv4/IPv6 servers when RTT cache is clear
Files
1- Štěpán Balážik authored
Self sign-up has been disabled due to increased spam activity. If you want to get access, please send an email to a project owner (preferred) or at gitlab(at)nic(dot)cz. We apologize for the inconvenience.
On clear RTT and in the presence of miscunfigured IP protocol version (e.g. net.ipv6 enabled but IPv6 doesn't work), resolver might waste a lot of time and packets trying to query nameservers using the broken protocol.
We choose the protocol first and if there is some candidate server with unknown RTT and using the chosen protocol, we swap it to the front and it is used for the transport.
If there is none, tough luck, we still want to try all the candidates before going back trying some again.