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 # magic id to use before we know a peer's id
12 # concurrent xmlrpc calls per find node/value request!
15 # how many hosts to post to
19 ### ROUTING TABLE STUFF
20 # how many times in a row a node can fail to respond before it's booted from the routing table
23 # never ping a node more often than this
24 MIN_PING_INTERVAL = 60 * 15 # fifteen minutes
26 # refresh buckets that haven't been touched in this long
27 BUCKET_STALENESS = 60 # one hour
31 # time before expirer starts running
32 KEINITIAL_DELAY = 15 # 15 seconds - to clean out old stuff in persistent db
34 # time between expirer runs
35 KE_DELAY = 60 * 60 # 1 hour
37 # expire entries older than this
38 KE_AGE = 60 * 60 * 24 # 24 hours