[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-bugs] #1992 [Tor Relay]: relays resolve hostname every time they compute dir fetch schedule



#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs