Mercurial > hg > nginx-tests
comparison limit_conn_complex.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 | ce687b25ea49 |
children | 196d33c2bb45 |
comparison
equal
deleted
inserted
replaced
973:7d7aef8b9f3a | 974:882267679006 |
---|---|
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:%%PORT_0%%; | 47 listen 127.0.0.1:8080; |
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:%%PORT_0%%/req2; | 56 proxy_pass http://127.0.0.1:8080/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 } |