comparison proxy_cache_use_stale.t @ 1179:660147bfe68c

Tests: TODO proxy_cache_use_stale.t alert seen with "aio_write".
author Sergey Kandaurov <pluknet@nginx.com>
date Tue, 30 May 2017 22:26:00 +0300
parents 4039b6b3a75a
children 0352ed25af20
comparison
equal deleted inserted replaced
1178:4039b6b3a75a 1179:660147bfe68c
223 $r = read_all(http_get('/ssi.html', start => 1)); 223 $r = read_all(http_get('/ssi.html', start => 1));
224 like($r, qr/^xxx (SEE-THIS){1024} xxx$/ms, 's-w-r - not blocked in subrequest'); 224 like($r, qr/^xxx (SEE-THIS){1024} xxx$/ms, 's-w-r - not blocked in subrequest');
225 225
226 } 226 }
227 227
228 # "aio_write" is used to produce "open socket ... left in connection" alerts.
229
230 $t->todo_alerts() if $t->read_file('nginx.conf') =~ /aio_write on/
231 and $t->read_file('nginx.conf') =~ /aio threads/ and $^O eq 'freebsd';
232
228 # due to the missing content_handler inheritance in a cloned subrequest, 233 # due to the missing content_handler inheritance in a cloned subrequest,
229 # this used to access a static file in the update request 234 # this used to access a static file in the update request
230 235
231 like(http_get('/t2.html?if=1'), qr/STALE/, 'background update in if'); 236 like(http_get('/t2.html?if=1'), qr/STALE/, 'background update in if');
232 237