twisted.protocols.htb.Bucket.drip() returns invalid results
|Reported by:||Greg||Owned by:||jesstess|
|Cc:||jesstess, Thijs Triemstra, Greg||Branch:||
branch-diff, diff-cov, branch-cov, buildbot
The method drip() of the Bucket class "Returns True if I am now empty."
The current drip() returns True only if the rate is zero (causing the bucket to drain instantaneously). This behavior does not take into account the possibility that a bucket will drain itself over time.
Attached is a patch containing a unit test for this issue and changes to the Bucket class that remedies this issue.