Subject: Re: ares_reinit patch

Re: ares_reinit patch

From: Dima Tisnek <dimaqq_at_gmail.com>
Date: Tue, 15 Feb 2011 10:48:43 -0700

ares__maybe_reinit() call is added in the start of ares_gethostbyxxxx functions.
this checks if it is time to call ares_reinit.
when ares_reinit is called it loads new system dns info, and if it is
different, swaps it into current ares channel.

what this means in practice is that if your dns settings have changed
(e.g. you visit another network), they will be refreshed by c-ares
when you call gethostbyxxxx, at most once per timeout, default in
c-ares is 5 seconds.

On 15 February 2011 02:20, Steinar H. Gunderson <sesse_at_google.com> wrote:
> Den 15. februar 2011 09:11 skrev Dima Tisnek <dimaqq_at_gmail.com> følgende:
>> * patches ares_gethostbyname and ares_gethostbyaddr with automatic updates.
>
> What does this mean?
>
> /* Steinar */
> --
> Software Engineer, Google Switzerland
>
Received on 2011-02-15