[tor-bugs] #30687 [Core Tor/Tor]: Implement a generic counter token bucket

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed May 29 14:46:08 UTC 2019


#30687: Implement a generic counter token bucket
--------------------------------+--------------------------------
     Reporter:  dgoulet         |      Owner:  (none)
         Type:  enhancement     |     Status:  new
     Priority:  Medium          |  Milestone:  Tor: 0.4.2.x-final
    Component:  Core Tor/Tor    |    Version:
     Severity:  Normal          |   Keywords:
Actual Points:                  |  Parent ID:  #15516
       Points:  0.1             |   Reviewer:
      Sponsor:  Sponsor27-must  |
--------------------------------+--------------------------------
 We have the `_raw_t` interface and a `_rw_t` specialized one. Many use
 cases only need a single counter like for instance the circuit creation
 DoS defense would use that. Or #15516 introduce2 rate limiting.

 After a discussion with nickm, it would be wise if we can simply implement
 a generic counter token bucket:

 {{{
 token_bucket_ctr_t
 }}}

 ... with a single bucket in it and thus could generically be used by many
 subsystems.

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


More information about the tor-bugs mailing list