comparison limit-req.t @ 137:59021f2b2fd3

Tests: fix limit_req test to avoid timeouts. In 0.8.38 delay finally honors rate correctly, and we don't want to wait 60 seconds.
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 31 May 2010 19:41:36 +0400
parents 8ac1faaddd2c
children
comparison
equal deleted inserted replaced
136:b436d71bb41b 137:59021f2b2fd3
35 35
36 http { 36 http {
37 %%TEST_GLOBALS_HTTP%% 37 %%TEST_GLOBALS_HTTP%%
38 38
39 limit_req_zone $binary_remote_addr zone=one:10m rate=1r/s; 39 limit_req_zone $binary_remote_addr zone=one:10m rate=1r/s;
40 limit_req_zone $binary_remote_addr zone=long:10m rate=1r/m; 40 limit_req_zone $binary_remote_addr zone=long:10m rate=1r/s;
41 limit_req_zone $binary_remote_addr zone=fast:10m rate=1000r/s; 41 limit_req_zone $binary_remote_addr zone=fast:10m rate=1000r/s;
42 42
43 server { 43 server {
44 listen 127.0.0.1:8080; 44 listen 127.0.0.1:8080;
45 server_name localhost; 45 server_name localhost;