On Thu, 8 Dec 2022, Dmitry Karpov via curl-library wrote:
It is kind of pity that we are tightly bound to limitations of getaddrinfo()
and can't use features from libraries that provide TTL, like c-ares.
I totally agree.
Correct me if I'm wrong, but both c-ares and getaddrinfo()-specific calls
are placed inside async-ares.c and async-thread.c and
Curl_resolver_getaddrinfo() is the resulting function for each resolver
backend.
So, I am wondering if it is possible to extend Curl_addrinfo (which
Curl_resolver_getaddrinfo() returns) and add TTL information there, but only
c-ares resolver backend will fill it?
Sure. That should be fairly even even! The "struct ares_addrinfo" contains TTL
data.
--
/ 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.se/mail/etiquette.html