From kde-core-devel Mon Jun 23 08:34:06 2008 From: Allan Sandfeld Jensen Date: Mon, 23 Jun 2008 08:34:06 +0000 To: kde-core-devel Subject: Re: [PATCH] DNS cache for Konqueror/KIO Message-Id: <200806231034.06199.kde () carewolf ! com> X-MARC-Message: https://marc.info/?l=kde-core-devel&m=121421010010446 On Sunday 22 June 2008, Roland Harnau wrote: > KIO's asynchronous design and some peculiarities in Qt's network > department often result in concurrent queries to resolve host names, > especially if Konquerer launches its huge slave army. As witnessed by > several bug reports (e.g. 162600) some kind of router can't cope with > this very well. The reason (at least in my case) is not the "crappy" > handling of IPv6 queries in itself. An analysis with tcpdump reveals > there are in general problems with concurrent queries to resolve the > same name if the requested record (AAAA or A) does not exist. A > solution (or workaround, as you like it) is a local DNS cache. The > core of my patch is therefore a reimplementation of Qt's asynchronous > resolver QHostInfo::lookupHost in form of > HostInfoAgent::lookupHost.with integrated cache and its integration > into KIO. The cache lives in a central place, in the application's > address space, but is used by several slaves (instances of classes > derived from TCPSlaveBase) living in separate process contexts. So > some IPC is necessary, and I have simply used the socket connection > between the slave and its counterpart in the application's address > space. > Thank you! I've wanted this feature for a long time. Now how are we going to convince TPTB to let us merge it into KDE 4.2? :D Regards `Allan