[tor-bugs] #2930 [Tor Relay]: Overwrite files in stats/ directory rather than appending to them

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Sat Apr 16 13:56:02 UTC 2011


#2930: Overwrite files in stats/ directory rather than appending to them
-------------------------+--------------------------------------------------
 Reporter:  karsten      |          Owner:     
     Type:  enhancement  |         Status:  new
 Priority:  normal       |      Milestone:     
Component:  Tor Relay    |        Version:     
 Keywords:               |         Parent:     
   Points:               |   Actualpoints:     
-------------------------+--------------------------------------------------
 Right now, we append statistics to files in the stats/ directory for half
 of the statistics, whereas we overwrite these files for the other half.
 In particular, we append buffer, dirreq, and entry stats and overwrite
 exit, connection, and bridge stats.

 Appending to files was useful when we didn't include stats in extra-info
 descriptors, because otherwise we'd have to copy them away to prevent Tor
 from overwriting them.

 But now that we include statistics in extra-info descriptors, it makes no
 sense to keep the old statistics forever.  We should change the behavior
 to overwriting instead of appending for all statistics.

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


More information about the tor-bugs mailing list