curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: HTTPS records

From: Daniel Stenberg via curl-library <curl-library_at_lists.haxx.se>
Date: Thu, 8 Dec 2022 23:27:25 +0100 (CET)

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
Received on 2022-12-08