This topic describes the syntax, features, parameters, and return values of throttling functions. This topic also provides examples of these functions.
limit_rate_after
The following table describes the details of this function.
Item | Description |
Syntax |
|
Description | Specifies the maximum amount of data transfer before the data transfer rate is throttled. If the upper limit is reached, the data transfer rate is throttled. Note This function sets the maximum amount of data transfer only for individual requests. |
Parameters |
|
Return value | If the function succeeds, |
Example | |
limit_rate
The following table describes the details of this function.
Item | Description |
Syntax |
|
Description | Specifies a value to which the data transfer rate is throttled. By default, the lowest data transfer rate is 50 KB/s. If you specify a data transfer rate that is lower than 50 KB/s, the data transfer rate is throttled to 50 KB/s. Note This function throttles only individual requests. |
Parameters |
|
Return value | If the function succeeds, |
Example | |