summaryrefslogtreecommitdiff
path: root/contrib/checksocks.pl
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2010-08-18 13:36:09 -0400
committerNick Mathewson <nickm@torproject.org>2010-08-18 13:36:09 -0400
commit5926d9cfccccfca19895522ed7a445626be8cc79 (patch)
treed6fbbb0ecc5e632f38132543e38de4cf7a24c406 /contrib/checksocks.pl
parent23fdf0b30fd9fdfe1f82e5aa1b8a196c3ca68575 (diff)
downloadtor-5926d9cfccccfca19895522ed7a445626be8cc79.tar.gz
tor-5926d9cfccccfca19895522ed7a445626be8cc79.zip
Move code for launching tests out of router_add_to_routerlist()
router_add_to_routerlist() is supposed to be a nice minimal function that only touches the routerlist structures, but it included a call to dirserv_single_reachability_test(). We have a function that gets called _after_ adding descriptors successfully: routerlist_descriptors_added. This patch moves the responsibility for testing there. Because the decision of whether to test or not depends on whether there was an old routerinfo for this router or not, we have to first detect whether we _will_ want to run the tests if the router is added. We make this the job of routers_update_status_from_consensus_networkstatus(). Finally, this patch makes the code notice if a router is going from hibernating to non-hibernating, and if so causes a reachability test to get launched.
Diffstat (limited to 'contrib/checksocks.pl')
0 files changed, 0 insertions, 0 deletions