[tor-bugs] #12485 [Tor]: Reduce time to write guard-related changes to the state file

Tor Bug Tracker & Wiki blackhole at torproject.org
Sat Jun 28 14:53:30 UTC 2014


#12485: Reduce time to write guard-related changes to the state file
-----------------------+------------------------------------
 Reporter:  asn        |          Owner:
     Type:  defect     |         Status:  new
 Priority:  minor      |      Milestone:  Tor: 0.2.6.x-final
Component:  Tor        |        Version:
 Keywords:  tor-guard  |  Actual Points:
Parent ID:             |         Points:
-----------------------+------------------------------------
 We have:
 {{{
 void
 entry_guards_changed(void)
 {
   time_t when;
   entry_guards_dirty = 1;

   /* or_state_save() will call entry_guards_update_state(). */
   when = get_options()->AvoidDiskWrites ? time(NULL) + 3600 :
 time(NULL)+600;
   or_state_mark_dirty(get_or_state(), when);
 }
 }}}

 Which means that Tor saves guard-related changes to the state file after
 10 minutes, or 1 hour if `AvoidDiskWrites` is enabled.

 Maybe this time should be reduced, since we are considering guard-related
 changes as quite important? It would be a pity to settle on a guard node,
 then close the Tor client fast and lose that information.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/12485>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list