diff options
author | Roger Dingledine <arma@torproject.org> | 2011-03-11 22:12:15 -0500 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2011-03-11 22:12:15 -0500 |
commit | 977e396e866052a20de73f4e8121e514d4eff774 (patch) | |
tree | bc98cac8752caa9d31bbc4c880795d01705387e3 /src/or/dirserv.h | |
parent | 600ad7bf8d499d04259586bcf91afed7dfb88f99 (diff) | |
download | tor-977e396e866052a20de73f4e8121e514d4eff774.tar.gz tor-977e396e866052a20de73f4e8121e514d4eff774.zip |
improve accuracy for when a relay went unreachable
Diffstat (limited to 'src/or/dirserv.h')
-rw-r--r-- | src/or/dirserv.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/or/dirserv.h b/src/or/dirserv.h index 56ad7a6a56..949482ba73 100644 --- a/src/or/dirserv.h +++ b/src/or/dirserv.h @@ -12,6 +12,14 @@ #ifndef _TOR_DIRSERV_H #define _TOR_DIRSERV_H +/** What fraction (1 over this number) of the relay ID space do we + * (as a directory authority) launch connections to at each reachability + * test? */ +#define REACHABILITY_MODULO_PER_TEST 128 + +/** How many seconds apart are the reachability tests for a given relay? */ +#define REACHABILITY_TEST_PERIOD (10*REACHABILITY_MODULO_PER_TEST) + /** Maximum length of an exit policy summary. */ #define MAX_EXITPOLICY_SUMMARY_LEN 1000 |