Browse Source

[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
master
Glenn Strauss 5 months ago
parent
commit
9c9cd37320
  1. 3
      tests/mod-fastcgi.t
  2. 3
      tests/mod-scgi.t

3
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

3
tests/mod-scgi.t

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

Loading…
Cancel
Save