Skip to content
Snippets Groups Projects
Closed (moved) Reduce time to write guard-related changes to the state file
  • View options
  • Reduce time to write guard-related changes to the state file

  • View options
  • Closed (moved) Issue created by George Kadianakis

    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.

    Linked items ... 0

  • Activity

    • All activity
    • Comments only
    • History only
    • Newest first
    • Oldest first
    Loading Loading Loading Loading Loading Loading Loading Loading Loading Loading