X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=const.py;h=58d539ec56ea1723b1a90be03786958fb2fa014c;hb=8b06bc6271b9403934d89573af14cc90488b2a31;hp=1a42485421ac7c2fd33ffb5d5535a460281e9990;hpb=9048402f56c24474c79920ab849748223ed339cf;p=quix0rs-apt-p2p.git diff --git a/const.py b/const.py index 1a42485..58d539e 100644 --- a/const.py +++ b/const.py @@ -16,7 +16,6 @@ try: except IOError: print "no resolv.conf!" """ -from twisted.internet import reactor # magic id to use before we know a peer's id NULL_ID = 20 * '\0' @@ -47,7 +46,7 @@ MAX_FAILURES = 3 MIN_PING_INTERVAL = 60 * 15 # fifteen minutes # refresh buckets that haven't been touched in this long -BUCKET_STALENESS = 60 # one hour +BUCKET_STALENESS = 60 * 60 # one hour ### KEY EXPIRER @@ -55,7 +54,7 @@ BUCKET_STALENESS = 60 # one hour KEINITIAL_DELAY = 15 # 15 seconds - to clean out old stuff in persistent db # time between expirer runs -KE_DELAY = 60 * 60 # 1 hour +KE_DELAY = 60 * 20 # 20 minutes # expire entries older than this -KE_AGE = 60 * 60 * 24 # 24 hours +KE_AGE = 60 * 60 # 60 minutes