summaryrefslogtreecommitdiff
path: root/tests/mod-fastcgi.t
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2021-07-08 20:49:14 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2021-09-04 08:08:26 -0400
commit9c9cd37320c43d50632bcb9452aee71b18a7a910 (patch)
treef71930ce846bc74bb258c1f60f452b88c80a9573 /tests/mod-fastcgi.t
parent5294d7e18fb0d43bd467155a57e345a697fd3f6a (diff)
downloadlighttpd-git-9c9cd37320c43d50632bcb9452aee71b18a7a910.tar.gz
[tests] speed up mod-fastcgi and mod-scgi tests
On platforms where lighttpd gets SIGCHLD, lighttpd can quickly detect exit of backend process and can restart backend process
Diffstat (limited to 'tests/mod-fastcgi.t')
-rwxr-xr-xtests/mod-fastcgi.t3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/mod-fastcgi.t b/tests/mod-fastcgi.t
index f90ed852..c904d860 100755
--- a/tests/mod-fastcgi.t
+++ b/tests/mod-fastcgi.t
@@ -198,8 +198,7 @@ EOF
ok($tf->handle_http($t) == 0, 'killing fastcgi and wait for restart');
# (might take lighttpd 1 sec to detect backend exit)
- select(undef, undef, undef, .5);
- for (my $c = 2*20; $c && 0 == $tf->listening_on($ephemeral_port); --$c) {
+ for (my $c = 2*30; $c && 0 == $tf->listening_on($ephemeral_port); --$c) {
select(undef, undef, undef, 0.05);
}
$t->{REQUEST} = ( <<EOF