comparison limit_conn_complex.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 64abcc611242
children ce687b25ea49
comparison
equal deleted inserted replaced
951:9361c7eddfc1 952:e9064d691790
42 limit_req_zone $binary_remote_addr$arg_r zone=req:1m rate=1r/m; 42 limit_req_zone $binary_remote_addr$arg_r zone=req:1m rate=1r/m;
43 limit_req_zone $binary_remote_addr zone=re2:1m rate=1r/m; 43 limit_req_zone $binary_remote_addr zone=re2:1m rate=1r/m;
44 limit_conn_zone $binary_remote_addr$arg_c zone=conn:1m; 44 limit_conn_zone $binary_remote_addr$arg_c zone=conn:1m;
45 45
46 server { 46 server {
47 listen 127.0.0.1:8080; 47 listen 127.0.0.1:%%PORT_0%%;
48 server_name localhost; 48 server_name localhost;
49 49
50 location / { 50 location / {
51 limit_conn conn 1; 51 limit_conn conn 1;
52 } 52 }
53 53
54 location /w { 54 location /w {
55 limit_conn conn 1; 55 limit_conn conn 1;
56 proxy_pass http://127.0.0.1:8080/req2; 56 proxy_pass http://127.0.0.1:%%PORT_0%%/req2;
57 } 57 }
58 58
59 location /req { 59 location /req {
60 limit_req zone=req burst=2; 60 limit_req zone=req burst=2;
61 } 61 }