comparison proxy_cache_use_stale.t @ 1412:aaaa8a40250b

Tests: adjusted proxy_cache_use_stale.t for slow hosts. The request processing which updates proxy cache could be delayed for too little time before a subsequent request would be started processing, such that the resulting cache status will be HIT instead of expected UPDATING.
author Sergey Kandaurov <pluknet@nginx.com>
date Mon, 10 Dec 2018 13:27:27 +0300
parents 97c8280de681
children f5b18471e17a
comparison
equal deleted inserted replaced
1411:a8243ed8adcb 1412:aaaa8a40250b
37 http { 37 http {
38 %%TEST_GLOBALS_HTTP%% 38 %%TEST_GLOBALS_HTTP%%
39 39
40 proxy_cache_path %%TESTDIR%%/cache levels=1:2 keys_zone=NAME:1m; 40 proxy_cache_path %%TESTDIR%%/cache levels=1:2 keys_zone=NAME:1m;
41 41
42 limit_req_zone $binary_remote_addr zone=one:1m rate=15r/m; 42 limit_req_zone $binary_remote_addr zone=one:1m rate=10r/m;
43 43
44 server { 44 server {
45 listen 127.0.0.1:8080; 45 listen 127.0.0.1:8080;
46 server_name localhost; 46 server_name localhost;
47 47