[tor-bugs] #3012 [Tor Relay]: relays don't ever checkpoint their state file

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Wed Apr 27 17:19:18 UTC 2011


#3012: relays don't ever checkpoint their state file
-----------------------+----------------------------------------------------
 Reporter:  arma       |          Owner:                    
     Type:  defect     |         Status:  new               
 Priority:  normal     |      Milestone:  Tor: 0.2.2.x-final
Component:  Tor Relay  |        Version:                    
 Keywords:             |         Parent:                    
   Points:             |   Actualpoints:                    
-----------------------+----------------------------------------------------
 The calls to or_state_mark_dirty() are:
 - When you change your onion key
 - Every n client circuits you build
 - When you write out bandwidth accounting info (which happens on hup and
 when you begin hibernation or go dormant)
 - When you're exiting
 - When you add/remove an entry guard or one of your entry guards changes
 state

 There's no regular checkpoint though. Which means you could go many days
 without writing it, and for relays now that we've added #1863 we might
 want that.

 One fix would be to change
 {{{
   global_state->next_write = TIME_MAX;
 }}}
 in or_state_save() to pick something like a day rather than TIME_MAX.

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


More information about the tor-bugs mailing list