Stop cache pollution. Check m_bCheckedLocally

After you have edited the source code, post your patch here.
Forum rules
Home | Wiki | Rules

Stop cache pollution. Check m_bCheckedLocally

Postby ivan386 » 08 Oct 2017 10:05

Code: Select all
Index: HostCache.cpp
--- HostCache.cpp   (revision 9700)
+++ HostCache.cpp   (working copy)
@@ -1639,6 +1639,8 @@
 bool CHostCacheHost::CanQuote(const DWORD tNow) const
+      // We checked this host
+      m_bCheckedLocally &&
       // A host isn't dead...
       ( m_nFailures == 0 ) &&
       // ...and host isn't expired...

I hope this little change stop cache pollution with not working hosts.

I think it's important to make this change in the release version.

Надеюсь что это маленькое изменение остановит заражение кеша не работающими хостами.

Я думаю важно это изменение внести в релизную версию.
HostCache(CanQuote check m_bCheckedLocally).zip
(12.48 KiB) Downloaded 22 times
Posts: 260
Joined: 17 Jun 2009 14:08

Return to Code Submission

Who is online

Users browsing this forum: No registered users and 1 guest