mirror of https://github.com/qt/qtbase.git
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>
This commit is contained in:
parent
6de515aea2
commit
ddbbf2b4a7
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue