Buy commercial curl support. 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 Daniel himself.
c-ares channel instances
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Patrick Schlangen via curl-library <curl-library_at_lists.haxx.se>
Date: Sun, 28 Sep 2025 20:50:32 +0000
Hi,
is it by design that libcurl seems to allocate one c-ares channel per easy handle?
In my application, I'm running lots of transfers via the multi interface, and while profiling, I noticed ~ 3 % of my run time is spent in parsing the hosts file over and over again, once for each easy transfer.
Is it possible to either share the parsed hosts file between transfers or alternatively disable the /etc/hosts lookup entirely? (When using c-ares API, there seems to be the possibility to skip it, but not sure how to do it when using it from libcurl.)
Thanks,
Patrick
Date: Sun, 28 Sep 2025 20:50:32 +0000
Hi,
is it by design that libcurl seems to allocate one c-ares channel per easy handle?
In my application, I'm running lots of transfers via the multi interface, and while profiling, I noticed ~ 3 % of my run time is spent in parsing the hosts file over and over again, once for each easy transfer.
Is it possible to either share the parsed hosts file between transfers or alternatively disable the /etc/hosts lookup entirely? (When using c-ares API, there seems to be the possibility to skip it, but not sure how to do it when using it from libcurl.)
Thanks,
Patrick
-- Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library Etiquette: https://curl.se/mail/etiquette.htmlReceived on 2025-09-28