Base class for Squid-to-client bandwidth limiting.
bool noLimit() const
Whether this bucket will not do bandwidth limiting.
double bucketLevel
how much can be written now
void refillBucket()
Increases the bucket level with the writeSpeedLimit speed.
virtual void reduceBucket(const int len)
Decreases the bucket level.
bool selectWaiting
is between commSetSelect and commHandleWrite
Details about a particular Comm IO callback event.
Comm::ConnectionPointer conn
MessageDelayPool::Pointer theAggregate
void reduceBucket(int len) override
Decreases the bucket level.
MessageBucket(const int speed, const int initialLevelPercent, const double sizeLimit, MessageDelayPool::Pointer pool)
void scheduleWrite(Comm::IoCallback *state) override
Will plan another write call.
bool noLimit() const
whether the aggregate bucket has no limit
void refillBucket()
Increases the aggregate bucket level with the aggregateRestore speed.
int level()
current aggregate level
void bytesIn(int qty)
decreases the aggregate level
MessageBucket::Pointer writeQuotaHandler
response write limiter, if configured
A const & min(A const &lhs, A const &rhs)
#define COMM_SELECT_WRITE