diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-12-11 19:12:55 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-12-11 19:12:55 +0000 |
commit | f3b52e331e4640a75d8323f86e29e1a2c6a2dafe (patch) | |
tree | 6e54f23804d32ae468a4f30a14a9e51131b78490 /src/or/or.h | |
parent | 043b4fc59e635015dc7fc758d44ba298b8278f4a (diff) | |
download | tor-f3b52e331e4640a75d8323f86e29e1a2c6a2dafe.tar.gz tor-f3b52e331e4640a75d8323f86e29e1a2c6a2dafe.zip |
Avoid multiple descriptor-fetch connections to authorities. Fixes bug 366.
svn:r17594
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/or/or.h b/src/or/or.h index 37eeaddc3e..172922d12e 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -4207,9 +4207,16 @@ smartlist_t *router_get_trusted_dir_servers(void); #define PDS_IGNORE_FASCISTFIREWALL (1<<2) /** Flag to indicate that we should not use any directory authority to which * we have an existing directory connection for downloading server descriptors - * or extrainfo documents. [NOTE: Only implemented for - * router_pick_trusteddirserver, not router_pick_directory_server.] - * Passed to router_pick_directory_server (et al).*/ + * or extrainfo documents. + * + * Passed to router_pick_directory_server (et al) + * + * [XXXX021 NOTE: This option is only implemented for pick_trusteddirserver, + * not pick_directory_server. If we make it work on pick_directory_server + * too, we could conservatively make it only prevent multiple fetches to + * the same authority, or we could aggressively make it prevent multiple + * fetches to _any_ directory server.] + */ #define PDS_NO_EXISTING_SERVERDESC_FETCH (1<<3) #define _PDS_PREFER_TUNNELED_DIR_CONNS (1<<16) routerstatus_t *router_pick_directory_server(authority_type_t type, int flags); |