[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #1790 [Tor - Relay]: Count bytes spent on answering directory requests
#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs