QoS Bandwidth Throttler
Package:
Summary:
Limit the speed of files served for download
Groups:
Author:
Description:
This class can be used to limit the speed of files served for download.
It intercepts the PHP script output by setting a buffering handler that is called every time a given number of bytes are served to the browser.
The class measures the time since the last time the PHP output buffer was flushed and hold on PHP for a while if the average download speed is above a given limit.
It intercepts the PHP script output by setting a buffering handler that is called every time a given number of bytes are served to the browser.
The class measures the time since the last time the PHP output buffer was flushed and hold on PHP for a while if the average download speed is above a given limit.
Comments are closed.