]> git.mxchange.org Git - quix0rs-apt-p2p.git/blob - const.py
1d904f60f5f3491c394da5b067e864cd738b0bdb
[quix0rs-apt-p2p.git] / const.py
1 from twisted.internet.default import SelectReactor ## twistedmatrix.com
2
3 reactor = SelectReactor(installSignalHandlers=0)
4 from twisted.internet import main
5 main.installReactor(reactor)
6
7
8 # concurrent xmlrpc calls per find node/value request!
9 CONCURRENT_REQS = 3
10
11 # how many times in a row a node can fail to respond before it's booted from the routing table
12 MAX_FAILURES = 3
13
14 # time before expirer starts running
15 KEINITIAL_DELAY = 60 * 60 * 24 # 24 hours
16
17 # time between expirer runs
18 KE_DELAY = 60 * 60 # 1 hour
19
20 # expire entries older than this
21 KE_AGE = KEINITIAL_DELAY
22
23 # never ping a node more often than this
24 MIN_PING_INTERVAL = 60 * 15 # fifteen minutes
25
26 # refresh buckets that haven't been touched in this long
27 BUCKET_STALENESS = 60 # one hour