mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 12:28:42 +00:00
network: establish sessions without spending withheld request attempts
This commit is contained in:
1 parent
36f67747d7
commit
ea6bacf0a1
5 files changed
+120
-20
No files matched your search
@@ -9,6 +9,12 @@ constexpr size_t CLEANUP_MAX_NODES {4 * 1024};
|
||||
constexpr size_t CLEANUP_FREQ {4 * 1024};
|
||||
|
||||
NodeCache::~NodeCache()
|
||||
{
|
||||
clear();
|
||||
}
|
||||
|
||||
void
|
||||
NodeCache::clear()
|
||||
{
|
||||
cache_4.setExpired();
|
||||
cache_6.setExpired();
|
||||
|
||||
Reference in new issue
Block a user