[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
This commit is contained in:
Glenn Strauss 2021-07-08 20:49:14 -04:00
parent 5294d7e18f
commit 9c9cd37320
2 changed files with 2 additions and 4 deletions

View File

@ -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

View File

@ -80,8 +80,7 @@ EOF
ok($tf->handle_http($t) == 0, 'killing scgi 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