added a keep-alive check for pipelining
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@860 152afb58-edef-0310-8abb-c4023f1b3aa9
This commit is contained in:
parent
6db887ad3c
commit
151daf933c
|
@ -9,7 +9,7 @@ BEGIN {
|
|||
|
||||
use strict;
|
||||
use IO::Socket;
|
||||
use Test::More tests => 6;
|
||||
use Test::More tests => 7;
|
||||
use LightyTest;
|
||||
|
||||
my $tf = LightyTest->new();
|
||||
|
@ -38,6 +38,22 @@ GET /12345.txt HTTP/1.0
|
|||
Connection: keep-alive
|
||||
Host: 123.example.org
|
||||
|
||||
GET /12345.txt HTTP/1.0
|
||||
Host: 123.example.org
|
||||
Connection: keep-alive
|
||||
EOF
|
||||
);
|
||||
$t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200 } , { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200 } ];
|
||||
|
||||
ok($tf->handle_http($t) == 0, 'Explicit HTTP/1.0 Keep-Alive');
|
||||
|
||||
undef $t->{RESPONSE};
|
||||
|
||||
$t->{REQUEST} = ( <<EOF
|
||||
GET /12345.txt HTTP/1.0
|
||||
Connection: keep-alive
|
||||
Host: 123.example.org
|
||||
|
||||
GET /12345.txt HTTP/1.0
|
||||
Host: 123.example.org
|
||||
EOF
|
||||
|
|
Loading…
Reference in New Issue