On Mon, 9 May 2022, Dmitry Karpov via curl-library wrote:
If this approach is agreed upon, I have implementation for these changes and can create a PR.
The most recent change in this area that I can recall introduced the unconditional request for both families even if you ask for IPv4 or IPv6 specifically for a specific reason: The DNS cache.
That user had an application that wanted to first create an IPv4 (-only) connection and then an IPv6 (-only) one (separately from the previous connection). That requires that the DNS cache keeps both families even if the transfer itself is done using only one of them.
I presume this is what causing you problems? -- / daniel.haxx.se | Commercial curl support up to 24x7 is available! | Private help, bug fixes, support, ports, new features | https://curl.se/support.html -- Unsubscribe: https://lists.haxx.se/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.html