[tor-bugs] #3198 [Tor Bridge]: Try refetching bridge descriptors each second, not each ten seconds
Tor Bug Tracker & Wiki
torproject-admin at torproject.org
Mon May 16 16:40:29 UTC 2011
#3198: Try refetching bridge descriptors each second, not each ten seconds
------------------------+---------------------------------------------------
Reporter: arma | Owner:
Type: defect | Status: new
Priority: normal | Milestone: Tor: 0.2.2.x-final
Component: Tor Bridge | Version:
Keywords: | Parent:
Points: | Actualpoints:
------------------------+---------------------------------------------------
Currently we only call fetch_bridge_descriptors() from main.c inside the
"time_to_try_getting_descriptors < now" clause, which happens every 10 or
60 seconds depending on whether we 'have enough dir info'.
I think that schedule is fine for normal descriptors (because we're trying
to batch requests), but I think for bridge descriptors we could retry
every second without much harm and with some benefit.
In particular, when we setconf a new bridge, we currently need to wait
10ish or 60ish seconds before we'll even start its descriptor download
(see #2355).
I'd originally thought to call fetch_bridge_descriptors() from inside
options_act() as a special case, but now I think we should just call it
every second. (It looks through a smartlist, does a
download_status_is_ready() check on each entry, and returns.)
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/3198>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list