twisted.protocols.htb.Bucket.drip() returns invalid results
|Reported by:||gsk||Owned by:||jesstess|
|Cc:||jesstess, thijs, gsk||Branch:||
(github, patch, buildbot, log)
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.