summaryrefslogtreecommitdiffstats
path: root/src/network/kernel
diff options
context:
space:
mode:
authorRichard J. Moore <rich@kde.org>2014-02-15 14:06:19 +0000
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-16 19:14:59 +0100
commitddbbf2b4a71b15181a33d911b99f2e0650566edf (patch)
tree979daccaec18aa635e71dcdc4171876a0a3cef11 /src/network/kernel
parent6de515aea2621073325f7d7bb461af26b009d8d0 (diff)
Increase the number of concurrent DNS lookups.
Modern websites use around 15 hosts on average so the limit of 5 DNS looks meant that most non-trivial sites have to wait for at least one unneeded round trip. Task-number: QTBUG-30866 Change-Id: I584dd46c247e0413b2ed88dd66f111cff08ff987 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/network/kernel')
-rw-r--r--src/network/kernel/qhostinfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/kernel/qhostinfo.cpp b/src/network/kernel/qhostinfo.cpp
index d25372ece6..025e3f3e00 100644
--- a/src/network/kernel/qhostinfo.cpp
+++ b/src/network/kernel/qhostinfo.cpp
@@ -508,7 +508,7 @@ QHostInfoLookupManager::QHostInfoLookupManager() : mutex(QMutex::Recursive), was
{
moveToThread(QCoreApplicationPrivate::mainThread());
connect(QCoreApplication::instance(), SIGNAL(destroyed()), SLOT(waitForThreadPoolDone()), Qt::DirectConnection);
- threadPool.setMaxThreadCount(5); // do 5 DNS lookups in parallel
+ threadPool.setMaxThreadCount(20); // do up to 20 DNS lookups in parallel
}
QHostInfoLookupManager::~QHostInfoLookupManager()