Skip to content

Commit a264fcf

Browse files
committed
Update README
1 parent f96f062 commit a264fcf

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

README

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,15 @@ could limit connection number by given variable. If the client is a browser,
1010
it only open one connection to the server. The speed will be limited to
1111
limit_rate, unless the client is a multi-thread download tool.
1212

13-
Limit_traffic_rate module provides a method to limit the whole download rate
14-
to a client IP or by a download URL, even there are many connections. The
15-
condition could be defined by the following directive.
13+
Limit_traffic_rate module provides a method to limit the total download rate
14+
by client IP or download URL, even there are several connections. The
15+
limit condition could be defined by the following directive.
1616

1717
The limit_traffic_rate module need to use a share memory pool. Directive
1818
syntax is same to limit_zone.
1919

2020
http {
21+
#limit_traffic_rate_zone rate $request_uri 32m;
2122
limit_traffic_rate_zone rate $remote_addr 32m;
2223

2324
server {
@@ -29,12 +30,15 @@ syntax is same to limit_zone.
2930

3031
Changelogs
3132
v0.2
32-
* modify limit mothod, rate = (limit - last_rate)/conn + last_rate
33+
* modify algorithm, rate = (limit - last_rate)/conn + last_rate
3334
v0.1
3435
* first release
3536

3637
License
3738
=====
39+
40+
Same as nginx:
41+
3842
/*
3943
* Copyright (C) 2010 Simon([email protected])
4044
*

0 commit comments

Comments
 (0)