cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: c-ares and effect on resolve times

From: Pieter Ennes <pieter_at_watchmouse.com>
Date: Wed, 30 Jun 2010 15:18:05 +0100

Hi Daniel,

On 30 June 2010 14:55, Daniel Stenberg <daniel_at_haxx.se> wrote:
> On Tue, 29 Jun 2010, Pieter Ennes wrote:
>
>> What would be the effect of using c-ares w.r.t. resolve performance when
>> considering the resolves for a typical webpage load (incl. embedded assets)?
>
> I don't know. But it should be easy enough for you to measure this!
>
>> Does c-ares by-pass the OS entirely?
>
> Yes. c-ares does its own name resolving and uses no OS functions made for
> that purpose.
>
>> And finally, does curl do normal gethostbynames when c-ares is disabled?
>
> Yes: http://curl.haxx.se/docs/faq.html#How_does_libcurl_resolve_host_na

Thanks, that was what I was looking for!

-- 
 - Pieter
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-06-30