[tor-bugs] #4838 [Tor Relay]: A directory cache will never purge some old descriptors
Tor Bug Tracker & Wiki
torproject-admin at torproject.org
Fri Jan 6 04:17:29 UTC 2012
#4838: A directory cache will never purge some old descriptors
------------------------+---------------------------------------------------
Reporter: fermenthor | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: Tor Relay | Version: Tor: 0.2.3.10-alpha
Keywords: | Parent:
Points: | Actualpoints:
------------------------+---------------------------------------------------
By default, caches don't try to download v2 statuses so have_enough_v2 in
routerlist_remove_old_routers() is always false. This is similar to #3543.
I've come up with this modification to check whether we do v2 at all:
{{{
+ const or_options_t *options = get_options();
have_enough_v2 = !caches ||
+ !(authdir_mode_any_main(options) || options->FetchV2Networkstatus) ||
(networkstatus_v2_list &&
smartlist_len(networkstatus_v2_list) > get_n_v2_authorities() / 2);
}}}
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/4838>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list