changeset 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 a69de1aba1ad
files proxy_cache_use_stale.t
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/proxy_cache_use_stale.t
+++ b/proxy_cache_use_stale.t
@@ -225,6 +225,11 @@ like($r, qr/^xxx (SEE-THIS){1024} xxx$/m
 
 }
 
+# "aio_write" is used to produce "open socket ... left in connection" alerts.
+
+$t->todo_alerts() if $t->read_file('nginx.conf') =~ /aio_write on/
+        and $t->read_file('nginx.conf') =~ /aio threads/ and $^O eq 'freebsd';
+
 # due to the missing content_handler inheritance in a cloned subrequest,
 # this used to access a static file in the update request