diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-10-21 11:15:47 -0400 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-10-21 11:15:47 -0400 |
commit | 40e4f39181519a7eade4954f9ecb92b84ffb4866 (patch) | |
tree | f6fc14e5e1453def68bf984e79bfa37e1436d697 /node/Constants.hpp | |
parent | 6e217dfcb01c923e54dd172d0dfca68ab8566bdd (diff) | |
download | infinitytier-40e4f39181519a7eade4954f9ecb92b84ffb4866.tar.gz infinitytier-40e4f39181519a7eade4954f9ecb92b84ffb4866.zip |
Peers are now dumped on shutdown in a persistence cache and reloaded on startup, which is good enough for clients right now. Supernodes will get something else for long-term authoritative identity caching.
Diffstat (limited to 'node/Constants.hpp')
-rw-r--r-- | node/Constants.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/node/Constants.hpp b/node/Constants.hpp index 5b6fa92b..23dd5e48 100644 --- a/node/Constants.hpp +++ b/node/Constants.hpp @@ -209,6 +209,11 @@ error_no_ZT_ARCH_defined; #define ZT_DB_CLEAN_PERIOD 300000 /** + * How long to remember peers in RAM if they haven't been used + */ +#define ZT_PEER_IN_MEMORY_EXPIRATION 600000 + +/** * Delay between WHOIS retries in ms */ #define ZT_WHOIS_RETRY_DELAY 350 |