[PATCH] DNS cache for Konqueror/KIO

Thiago Macieira thiago at kde.org
Mon Jul 7 15:57:35 BST 2008

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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20080707/def6e585/attachment.sig>

More information about the kde-core-devel mailing list