Mercurial > hg > nginx-tests
comparison limit_req.t @ 952:e9064d691790
Tests: converted tests to run in parallel.
author | Andrey Zelenkov <zelenkov@nginx.com> |
---|---|
date | Tue, 21 Jun 2016 16:39:13 +0300 |
parents | 2cd00179f4b2 |
children | 882267679006 |
comparison
equal
deleted
inserted
replaced
951:9361c7eddfc1 | 952:e9064d691790 |
---|---|
38 limit_req_zone $binary_remote_addr zone=one:1m rate=2r/s; | 38 limit_req_zone $binary_remote_addr zone=one:1m rate=2r/s; |
39 limit_req_zone $binary_remote_addr zone=long:1m rate=2r/s; | 39 limit_req_zone $binary_remote_addr zone=long:1m rate=2r/s; |
40 limit_req_zone $binary_remote_addr zone=fast:1m rate=1000r/s; | 40 limit_req_zone $binary_remote_addr zone=fast:1m rate=1000r/s; |
41 | 41 |
42 server { | 42 server { |
43 listen 127.0.0.1:8080; | 43 listen 127.0.0.1:%%PORT_0%%; |
44 server_name localhost; | 44 server_name localhost; |
45 location / { | 45 location / { |
46 limit_req zone=one burst=1 nodelay; | 46 limit_req zone=one burst=1 nodelay; |
47 } | 47 } |
48 location /long { | 48 location /long { |