Mercurial > hg > nginx-tests
comparison h2_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 | 991ef7781b38 |
children | 882267679006 |
comparison
equal
deleted
inserted
replaced
951:9361c7eddfc1 | 952:e9064d691790 |
---|---|
41 %%TEST_GLOBALS_HTTP%% | 41 %%TEST_GLOBALS_HTTP%% |
42 | 42 |
43 limit_req_zone $binary_remote_addr zone=req:1m rate=1r/s; | 43 limit_req_zone $binary_remote_addr zone=req:1m rate=1r/s; |
44 | 44 |
45 server { | 45 server { |
46 listen 127.0.0.1:8080 http2; | 46 listen 127.0.0.1:%%PORT_0%% http2; |
47 listen 127.0.0.1:8081; | 47 listen 127.0.0.1:%%PORT_1%%; |
48 server_name localhost; | 48 server_name localhost; |
49 | 49 |
50 location / { } | 50 location / { } |
51 location /limit_req { | 51 location /limit_req { |
52 limit_req zone=req burst=2; | 52 limit_req zone=req burst=2; |
54 } | 54 } |
55 location /proxy_limit_req/ { | 55 location /proxy_limit_req/ { |
56 add_header X-Body $request_body; | 56 add_header X-Body $request_body; |
57 add_header X-Body-File $request_body_file; | 57 add_header X-Body-File $request_body_file; |
58 client_body_in_file_only on; | 58 client_body_in_file_only on; |
59 proxy_pass http://127.0.0.1:8081/; | 59 proxy_pass http://127.0.0.1:%%PORT_1%%/; |
60 limit_req zone=req burst=2; | 60 limit_req zone=req burst=2; |
61 } | 61 } |
62 } | 62 } |
63 } | 63 } |
64 | 64 |