Mercurial > hg > nginx-tests
comparison proxy_cache_lock.t @ 793:ee7e07d826b8
Tests: adjusted proxy_cache_lock.t test timeout for slow hosts.
A too short delay may result in proxy_cache_lock_timeout not fired, so the next
request will get a fresh response from backend, and the timeout test will fail.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Wed, 02 Dec 2015 14:05:17 +0300 |
parents | 97e88eff1433 |
children | e9064d691790 |
comparison
equal
deleted
inserted
replaced
792:47139a1ce06e | 793:ee7e07d826b8 |
---|---|
148 last if /^\x0d?\x0a?$/; | 148 last if /^\x0d?\x0a?$/; |
149 } | 149 } |
150 | 150 |
151 next unless $uri; | 151 next unless $uri; |
152 | 152 |
153 select(undef, undef, undef, 0.5); | 153 select(undef, undef, undef, 1.1); |
154 | 154 |
155 $num++; | 155 $num++; |
156 print $client <<"EOF"; | 156 print $client <<"EOF"; |
157 HTTP/1.1 200 OK | 157 HTTP/1.1 200 OK |
158 Cache-Control: max-age=300 | 158 Cache-Control: max-age=300 |