[tor-bugs] #1992 [Tor Relay]: relays resolve hostname every time they compute dir fetch schedule
Tor Bug Tracker & Wiki
torproject-admin at torproject.org
Fri Oct 1 17:52:42 UTC 2010
#1992: relays resolve hostname every time they compute dir fetch schedule
-----------------------+----------------------------------------------------
Reporter: arma | Owner:
Type: defect | Status: new
Priority: minor | Milestone: Tor: 0.2.3.x-final
Component: Tor Relay | Version:
Keywords: | Parent:
-----------------------+----------------------------------------------------
directory_fetches_from_authorities() calls router_pick_published_address()
whenever server_mode(options) is true.
This happens during directory_get_from_dirserver(),
directory_command_should_use_begindir(), dir_routerdesc_download_failed(),
directory_info_has_arrived(), update_consensus_networkstatus_fetch_time(),
launch_router_descriptor_downloads(),
update_router_descriptor_downloads(), etc.
Sounds like we should refactor things so it writes its guessed address to
a variable and just reads that variable, and then have a periodic event
(scheduled when we want it, rather than scheduled by accident because we
think about doing a directory fetch) that writes an address into the
variable.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/1992>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list