From ddbbf2b4a71b15181a33d911b99f2e0650566edf Mon Sep 17 00:00:00 2001 From: "Richard J. Moore" Date: Sat, 15 Feb 2014 14:06:19 +0000 Subject: 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 --- src/network/kernel/qhostinfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/network/kernel/qhostinfo.cpp') 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() -- cgit v1.2.3