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

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Tue Aug 10 07:33: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 karsten):

 I think I found the problem:

 https://gitweb.torproject.org/karsten/tor.git/commitdiff/c69c0983da4353bc4d5b3ad70ab9f1b8bd9bf5de

 In that particular line we read n_read bytes on a connection and need to
 decrement the bucket counters of the linked connection. I think we need to
 consider these bytes as written bytes on the linked connection, not read
 bytes.

 This logic seems to work for tunneled directory connections (OR conn ->
 Exit conn -> Dir conn; Exit and Dir conn are linked). Can someone confirm
 that this also works for linked connections in general?

 Attached you'll find a graph with more plausible results.

 See updated branch dirbytes in my public repository. If others agree, this
 patch can be merged into master.

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


More information about the tor-bugs mailing list