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: Repeated calls to ares_init when using c-ares

From: Daniel Stenberg via curl-library <curl-library_at_cool.haxx.se>
Date: Fri, 31 Jan 2020 10:03:06 +0100 (CET)

On Wed, 29 Jan 2020, Niall O'Reilly via curl-library wrote:

>> 2. A simpler method would possibly be to use a single c-ares "channel" for
>> a whole multi handle, as then you would just make sure to keep the multi
>> handle around when doing multiple transfers and c-ares wouldn't have to
>> re-init.
>
> This seems to be the kind of approach which would enable use of c-ares for
> fetching host attributes other than addresses, such as might be carried by
> HTTPSSVC.

Sure, but we can do that already with the c-ares channel kept in a per-easy
handle basis too. This idea is more of an optimizing the c-ares use that
offering any new functionality, I think.

-- 
  / daniel.haxx.se | Commercial curl support up to 24x7 is available!
                   | Private help, bug fixes, support, ports, new features
                   | https://www.wolfssl.com/contact/
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2020-01-31