Opened 3 months ago

Last modified 3 days ago

#31062 new defect

token bucket: Improve library to handle under/overflow and clock jump

Reported by: dgoulet Owned by:
Priority: Medium Milestone: Tor: 0.4.3.x-final
Component: Core Tor/Tor Version:
Severity: Normal Keywords: token-bucket
Cc: Actual Points:
Parent ID: Points: 0.2
Reviewer: Sponsor: Sponsor27-can

Description

The DoS subsystem implements a very simple token bucket but has a lot of safeguards against under/overflows and clock jump.

We should take those, move them into the token-bucket implementation and then make the DoS subsystem use it.

This is quite important to not wait too long on it because of #15516 will soon be used extensively using the generic token bucket.

Child Tickets

Change History (1)

comment:1 Changed 3 days ago by nickm

Milestone: Tor: 0.4.2.x-finalTor: 0.4.3.x-final
Note: See TracTickets for help on using tickets.