[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-bugs] Re: #1706 [Tor - Metrics]: Calculate fraction of bytes spent on answering directory requests



#1706: Calculate fraction of bytes spent on answering directory requests
---------------------------+------------------------------------------------
 Reporter:  karsten        |       Owner:  Karsten
     Type:  enhancement    |      Status:  new    
 Priority:  normal         |   Milestone:         
Component:  Tor - Metrics  |     Version:         
 Keywords:                 |      Parent:         
---------------------------+------------------------------------------------

Comment(by arma):

 /** Called whenever we've written data on a connection. */
 static int
 connection_flushed_some(connection_t *conn)

 is probably the right place to look for written. Not sure about read yet.

 Or you could move your patch to the top of connection-buckets-decrement
 before that connection-is-rate-limited check, if it's just meant as a
 hack.

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