[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: [PATCH] DNS cache for Konqueror/KIO
From:       Thiago Macieira <thiago () kde ! org>
Date:       2008-07-07 14:57:35
Message-ID: 200807071157.41606.thiago () kde ! org
[Download RAW message or body]


Roland Harnau wrote:
>According to [1]  the addreses returned by  getaddrinfo() (glibc
>version)  are ordered:
>"The important thing to remember here is that the addresses are
>returned in an order where the first returned address has the highest
>probability to succeed."
>
>[1]  http://people.redhat.com/drepper/userapi-ipv6.html

That is true, but the DNS server also does a round-robin ordering of 
addresses to spread the load on identical servers. getaddrinfo() is 
kind-of smart, but it can't tell the difference between two global IP 
addresses of the same version (v4 or v6).

Anyways, since the cache is held per application, this is not a big 
problem -- or a problem at all.

Patch is good, perfectly indented, very clever. Please commit!

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

["signature.asc" (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic