[tor-bugs] #1790 [Tor - Relay]: Count bytes spent on answering directory requests

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Tue Aug 3 14:35:21 UTC 2010


#1790: Count bytes spent on answering directory requests
-------------------------+--------------------------------------------------
 Reporter:  karsten      |       Owner:  karsten     
     Type:  enhancement  |      Status:  needs_review
 Priority:  normal       |   Milestone:              
Component:  Tor - Relay  |     Version:              
 Keywords:               |      Parent:              
-------------------------+--------------------------------------------------

Comment(by nickm):

 The check in connection_bytes_decrement is wrong; CONN_TYPE_DIR is not
 only directory request that we're answering, but also directory requests
 that we're making.

 The calculation of "len" in rep_hist_get_bandwidth_lines assumed that the
 longest identifier it cared about was write-history; dirreq-write-history
 is longer.  Also, are there any tors left that still care about getting
 "opt" ?  I'm pretty sure "opt" is unnecessary now that Tor 0.1.2.5 and
 earlier are dead, so we might as well remove it in a followup patch.

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


More information about the tor-bugs mailing list