[core] return from http_response_read if small rd
[lighttpd.git] / doc / outdated / traffic-shaping.txt
blob1076686e33bfc5c754a84e8e5184143cbd54554f
1 ===============
2 Traffic Shaping
3 ===============
5 ------------
6 Module: core
7 ------------
9 :Author: Jan Kneschke
10 :Date: $Date: 2004/11/03 22:26:05 $
11 :Revision: $Revision: 1.2 $
13 :abstract:
14   limiting bandwidth usage
16 .. meta::
17   :keywords: lighttpd, bandwidth limit, traffic shaping
19 .. contents:: Table of Contents
21 Description
22 ===========
24 Starting with 1.3.8, lighttpd supports limiting the bandwidth for
25 a single connection or config context like a virtual host or a URL.
27 Options
28 =======
30 :connection.kbytes-per-second:
31   limit the throughput for each single connection to the given
32   limit in kbyte/s
34   default: 0 (no limit)
36 :server.kbytes-per-second:
37   limit the throughput for all connections to the given limit
38   in kbyte/s
40   if you want to specify a limit for a special virtual server
41   use: ::
43     $HTTP["host"] == "www.example.org" {
44       server.kbytes-per-second = 128
45     }
47   which will override the default for this host.
49   default: 0 (no limit)
51 Additional Notes
52 ================
54 Keep in mind that a limit below 32kb/s might actually limit the traffic to 32kb/s. This
55 is caused by the size of the TCP send buffer.