]> git.mxchange.org Git - quix0rs-apt-p2p.git/blob - const.py
rpcclient now returns a list containing the return value then a dict currently containing
[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 # how many times a node can fail to respond before it's booted from the routing table
8 MAX_FAILURES = 3
9
10 # time before expirer starts running
11 KEINITIAL_DELAY = 60 * 60 * 24 # 24 hours
12
13 # time between expirer runs
14 KE_DELAY = 60 * 60 # 1 hour
15
16 # expire entries older than this
17 KE_AGE = KEINITIAL_DELAY