[tor-bugs] #13192 [Tor]: Collect aggregate stats of total hidden service usage vs total exit usage in Tor network

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Dec 25 10:04:00 UTC 2014


#13192: Collect aggregate stats of total hidden service usage vs total exit usage
in Tor network
-----------------------------+---------------------------------
     Reporter:  arma         |      Owner:
         Type:  enhancement  |     Status:  needs_information
     Priority:  normal       |  Milestone:  Tor: 0.2.???
    Component:  Tor          |    Version:
   Resolution:               |   Keywords:  SponsorR, tor-relay
Actual Points:               |  Parent ID:
       Points:               |
-----------------------------+---------------------------------

Comment (by teor):

 I've looked at some of the edge cases in the laplace code. I've created a
 branch that avoids operations that might trap or overflow.

 '''Branch:''' laplace-edge-cases
 '''Repository:''' ​​​​​​https://github.com/teor2345/tor.git

 This branch:
 * Avoid division by zero.
 * Avoid taking the log of zero.
 * Silence clang type conversion warnings using round and trunc.
   * The existing values returned by the laplace functions do not change.
 * Consistently check for overflow in round_*_to_next_multiple_of.

 I've also added tests for extreme values in all the laplace functions, and
 created tests for each round_*_to_next_multiple_of function.

 Unfortunately, the code isn't as concise or neat as it used to be, due to
 some of the special cases.

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


More information about the tor-bugs mailing list