From 488464731d1271f2ecd435beb3c956e7a1958bc5 Mon Sep 17 00:00:00 2001 From: stalkerok <63958081+stalkerok@users.noreply.github.com> Date: Thu, 6 Jul 2023 14:25:53 +0300 Subject: [PATCH] Change some default settings * Reduce default file pool size to 100 * Reduce default stop tracker timeout to 2 seconds PR #19171. --- src/base/bittorrent/sessionimpl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/base/bittorrent/sessionimpl.cpp b/src/base/bittorrent/sessionimpl.cpp index df81d2410..bf31a5704 100644 --- a/src/base/bittorrent/sessionimpl.cpp +++ b/src/base/bittorrent/sessionimpl.cpp @@ -416,7 +416,7 @@ SessionImpl::SessionImpl(QObject *parent) , m_announceToAllTiers(BITTORRENT_SESSION_KEY(u"AnnounceToAllTiers"_s), true) , m_asyncIOThreads(BITTORRENT_SESSION_KEY(u"AsyncIOThreadsCount"_s), 10) , m_hashingThreads(BITTORRENT_SESSION_KEY(u"HashingThreadsCount"_s), 1) - , m_filePoolSize(BITTORRENT_SESSION_KEY(u"FilePoolSize"_s), 500) + , m_filePoolSize(BITTORRENT_SESSION_KEY(u"FilePoolSize"_s), 100) , m_checkingMemUsage(BITTORRENT_SESSION_KEY(u"CheckingMemUsageSize"_s), 32) , m_diskCacheSize(BITTORRENT_SESSION_KEY(u"DiskCacheSize"_s), -1) , m_diskCacheTTL(BITTORRENT_SESSION_KEY(u"DiskCacheTTL"_s), 60) @@ -456,7 +456,7 @@ SessionImpl::SessionImpl(QObject *parent) , m_announceIP(BITTORRENT_SESSION_KEY(u"AnnounceIP"_s)) , m_maxConcurrentHTTPAnnounces(BITTORRENT_SESSION_KEY(u"MaxConcurrentHTTPAnnounces"_s), 50) , m_isReannounceWhenAddressChangedEnabled(BITTORRENT_SESSION_KEY(u"ReannounceWhenAddressChanged"_s), false) - , m_stopTrackerTimeout(BITTORRENT_SESSION_KEY(u"StopTrackerTimeout"_s), 5) + , m_stopTrackerTimeout(BITTORRENT_SESSION_KEY(u"StopTrackerTimeout"_s), 2) , m_maxConnections(BITTORRENT_SESSION_KEY(u"MaxConnections"_s), 500, lowerLimited(0, -1)) , m_maxUploads(BITTORRENT_SESSION_KEY(u"MaxUploads"_s), 20, lowerLimited(0, -1)) , m_maxConnectionsPerTorrent(BITTORRENT_SESSION_KEY(u"MaxConnectionsPerTorrent"_s), 100, lowerLimited(0, -1))