diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2017-01-10 06:34:23 -0500 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2017-01-10 07:54:47 -0500 |
commit | 64df38aad8443184ecf8b1a845aa2466b8a4ec43 (patch) | |
tree | ad94e7638e02ef7b477ea03bd7ee956680fd5fc9 /tests/mod-fastcgi.t | |
parent | 987a76ff586025c78746cc21cac2e4971069eafc (diff) | |
download | lighttpd-git-64df38aad8443184ecf8b1a845aa2466b8a4ec43.tar.gz |
[mod_fastcgi] detect child exit, restart proactively
(instead of detecting upon a subsequent HTTP request)
(for backends spawned by mod_fastcgi)
Diffstat (limited to 'tests/mod-fastcgi.t')
-rwxr-xr-x | tests/mod-fastcgi.t | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/tests/mod-fastcgi.t b/tests/mod-fastcgi.t index 31f1b92c..f5daaa9b 100755 --- a/tests/mod-fastcgi.t +++ b/tests/mod-fastcgi.t @@ -7,7 +7,7 @@ BEGIN { } use strict; -use Test::More tests => 60; +use Test::More tests => 59; use LightyTest; my $tf = LightyTest->new(); @@ -409,17 +409,7 @@ EOF $t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'HTTP-Content' => 'test123' } ]; ok($tf->handle_http($t) == 0, 'killing fastcgi and wait for restart'); - select(undef, undef, undef, .2); - $t->{REQUEST} = ( <<EOF -GET /index.fcgi?die-at-end HTTP/1.0 -Host: www.example.org -EOF - ); - $t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'HTTP-Content' => 'test123' } ]; - ok($tf->handle_http($t) == 0, 'killing fastcgi and wait for restart'); - - - select(undef, undef, undef, .2); + select(undef, undef, undef, .1) while (!$tf->listening_on(10000)); $t->{REQUEST} = ( <<EOF GET /index.fcgi?crlf HTTP/1.0 Host: www.example.org |