Re: libcurl 8.16.0 spawning large number of getaddrinfo threads?

Daniel Stenberg via curl-library <[email protected]> Sun, 19 Oct 2025 12:01:00 +0200 (CEST)
Newsgroups gmane.comp.web.curl.library
Message-ID <[email protected]>
On Sat, 18 Oct 2025, Demi Marie Obenour via curl-library wrote:

> Should distros build with c-ares by default?  I'm wondering if getaddrinfo() 
> is just too poor an interface.

Yes, getaddrinfo is a terrible interface and getaddrinfo_a is not helping.

Unfortunately, doing a 100% functional drop-in replacement for getaddrinfo has 
turned out to be a really difficult task. Several distros have through times 
tried to ship curl built with c-ares for this reason, but so far everyone has 
eventually had to back down from that decision because of some special edge 
case where c-ares did not behave like getaddrinfo.

With luck, one future day c-ares has gotten all of those problems ironed out 
and we can switch to a proper asynchronous name resolver more universally...

-- 

  / daniel.haxx.se || https://rock-solid.curl.dev
-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html