[PATCH] DNS cache for Konqueror/KIO
thiago at kde.org
Mon Jul 7 15:57:35 BST 2008
Roland Harnau wrote:
>According to  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."
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...
Size: 189 bytes
Desc: This is a digitally signed message part.
More information about the kde-core-devel