This commit is contained in:
Martin Rotter 2023-01-18 12:46:14 +01:00
parent 0ae89308df
commit 14d18cf8dd

View File

@ -218,9 +218,11 @@ Application::Application(const QString& id, int& argc, char** argv, const QStrin
auto ideal_th_count = QThread::idealThreadCount();
if (ideal_th_count > 1) {
QThreadPool::globalInstance()->setMaxThreadCount((std::min)(128, 2 * ideal_th_count));
QThreadPool::globalInstance()->setMaxThreadCount((std::min)(128, 4));
}
QThreadPool::globalInstance()->setExpiryTimeout(120s);
qDebugNN << LOGSEC_CORE << "OpenSSL version:" << QUOTE_W_SPACE_DOT(QSslSocket::sslLibraryVersionString());
qDebugNN << LOGSEC_CORE << "OpenSSL supported:" << QUOTE_W_SPACE_DOT(QSslSocket::supportsSsl());
qDebugNN << LOGSEC_CORE << "Global thread pool has"