]> git.mxchange.org Git - quix0rs-apt-p2p.git/blobdiff - const.py
fix bug in setting duplicate kv
[quix0rs-apt-p2p.git] / const.py
index c1a736041e8450fa5f86a36e24d1e3ddedde831e..f5feed44943b42b73dc3da668cf28d8d7048a6fe 100644 (file)
--- a/const.py
+++ b/const.py
@@ -7,6 +7,7 @@ main.installReactor(reactor)
 # magic id to use before we know a peer's id
 NULL_ID =  20 * '\0'
 
+
 ### SEARCHING/STORING
 # concurrent xmlrpc calls per find node/value request!
 CONCURRENT_REQS = 4
@@ -14,6 +15,7 @@ CONCURRENT_REQS = 4
 # how many hosts to post to
 STORE_REDUNDANCY = 3
 
+
 ###  ROUTING TABLE STUFF
 # how many times in a row a node can fail to respond before it's booted from the routing table
 MAX_FAILURES = 3
@@ -27,10 +29,10 @@ BUCKET_STALENESS = 60 # one hour
 
 ###  KEY EXPIRER
 # time before expirer starts running
-KEINITIAL_DELAY = 60 * 60 * 24 # 24 hours
+KEINITIAL_DELAY = 15 # 15 seconds - to clean out old stuff in persistent db
 
 # time between expirer runs
 KE_DELAY = 60 * 60 # 1 hour
 
 # expire entries older than this
-KE_AGE = KEINITIAL_DELAY
+KE_AGE = 60 * 60 * 24 # 24 hours