[tor-bugs] #1863 [Tor Relay]: Relays should store observed bandwidth in state file
Tor Bug Tracker & Wiki
torproject-admin at torproject.org
Mon Nov 22 21:45:23 UTC 2010
#1863: Relays should store observed bandwidth in state file
-----------------------+----------------------------------------------------
Reporter: mikeperry | Owner:
Type: defect | Status: new
Priority: normal | Milestone: Tor: 0.2.2.x-final
Component: Tor Relay | Version: Tor: 0.2.2.x-final
Keywords: | Parent:
-----------------------+----------------------------------------------------
Comment(by mikeperry):
The minimal solution is to just save the value from
rep_hist_bandwidth_assess() into the state file periodically. Upon
startup, tor would read this value in and then fill read_array and
write_array with this value instead of zero as it does now.
This way, the value from the state file would stay the max for 24 hours
(until the read_array and write_array are filled with observed data and
wrap around), or until a new higher bandwidth observation is made,
whichever comes first.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/1863#comment:3>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list