1 from twisted.internet.default import SelectReactor ## twistedmatrix.com
3 reactor = SelectReactor(installSignalHandlers=0)
4 from twisted.internet import main
5 main.installReactor(reactor)
7 # how many times a node can fail to respond before it's booted from the routing table
10 # time before expirer starts running
11 KEINITIAL_DELAY = 60 * 60 * 24 # 24 hours
13 # time between expirer runs
14 KE_DELAY = 60 * 60 # 1 hour
16 # expire entries older than this
17 KE_AGE = KEINITIAL_DELAY