comparison h2_limit_req.t @ 974:882267679006

Tests: simplified parallel modifications in tests. Mail tests were simplified in c227348453db.
author Andrey Zelenkov <zelenkov@nginx.com>
date Tue, 12 Jul 2016 17:39:03 +0300
parents e9064d691790
children 196d33c2bb45
comparison
equal deleted inserted replaced
973:7d7aef8b9f3a 974:882267679006
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:%%PORT_0%% http2; 46 listen 127.0.0.1:8080 http2;
47 listen 127.0.0.1:%%PORT_1%%; 47 listen 127.0.0.1:8081;
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:%%PORT_1%%/; 59 proxy_pass http://127.0.0.1:8081/;
60 limit_req zone=req burst=2; 60 limit_req zone=req burst=2;
61 } 61 }
62 } 62 }
63 } 63 }
64 64