comparison limit_conn.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 f4189a38c3a4
children 882267679006
comparison
equal deleted inserted replaced
951:9361c7eddfc1 952:e9064d691790
40 limit_conn_zone $binary_remote_addr zone=zone:1m; 40 limit_conn_zone $binary_remote_addr zone=zone:1m;
41 limit_conn_zone $binary_remote_addr zone=zone2:1m; 41 limit_conn_zone $binary_remote_addr zone=zone2:1m;
42 limit_conn_zone $binary_remote_addr zone=custom:1m; 42 limit_conn_zone $binary_remote_addr zone=custom:1m;
43 43
44 server { 44 server {
45 listen 127.0.0.1:8081; 45 listen 127.0.0.1:%%PORT_1%%;
46 server_name localhost; 46 server_name localhost;
47 47
48 location /w { 48 location /w {
49 limit_req zone=req burst=10; 49 limit_req zone=req burst=10;
50 } 50 }
51 } 51 }
52 52
53 server { 53 server {
54 listen 127.0.0.1:8080; 54 listen 127.0.0.1:%%PORT_0%%;
55 server_name localhost; 55 server_name localhost;
56 56
57 location / { 57 location / {
58 proxy_pass http://127.0.0.1:8081; 58 proxy_pass http://127.0.0.1:%%PORT_1%%;
59 limit_conn zone 1; 59 limit_conn zone 1;
60 } 60 }
61 61
62 location /1 { 62 location /1 {
63 limit_conn zone 1; 63 limit_conn zone 1;
70 location /unlim { 70 location /unlim {
71 limit_conn zone 5; 71 limit_conn zone 5;
72 } 72 }
73 73
74 location /custom { 74 location /custom {
75 proxy_pass http://127.0.0.1:8081/; 75 proxy_pass http://127.0.0.1:%%PORT_1%%/;
76 limit_conn_log_level info; 76 limit_conn_log_level info;
77 limit_conn_status 501; 77 limit_conn_status 501;
78 limit_conn custom 1; 78 limit_conn custom 1;
79 } 79 }
80 } 80 }