Return-Path: Delivered-To: apmail-httpd-test-cvs-archive@httpd.apache.org Received: (qmail 98378 invoked by uid 500); 8 Nov 2001 11:58:27 -0000 Mailing-List: contact test-cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: test-dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list test-cvs@httpd.apache.org Received: (qmail 98367 invoked from network); 8 Nov 2001 11:58:26 -0000 Date: 8 Nov 2001 11:46:38 -0000 Message-ID: <20011108114638.86097.qmail@icarus.apache.org> From: gbenson@apache.org To: httpd-test-cvs@apache.org Subject: cvs commit: httpd-test/perl-framework/t/htdocs/limits index.html X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N gbenson 01/11/08 03:46:38 Modified: perl-framework/t/apache limits.t perl-framework/t/conf extra.conf.in Added: perl-framework/t/htdocs/limits index.html Log: - compartmentalise the directives as much as is possible - don't use so much memory Revision Changes Path 1.6 +6 -4 httpd-test/perl-framework/t/apache/limits.t Index: limits.t =================================================================== RCS file: /home/cvs/httpd-test/perl-framework/t/apache/limits.t,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- limits.t 2001/11/07 02:31:33 1.5 +++ limits.t 2001/11/08 11:46:38 1.6 @@ -16,14 +16,16 @@ # LimitRequestLine 128 # LimitRequestFieldSize 1024 # LimitRequestFields 32 -# LimitRequestBody 10250000 +# +# LimitRequestBody 65536 +# # my @conditions = qw(requestline fieldsize fieldcount bodysize); my %fail_inputs = ('requestline' => ("/" . ('a' x 256)), 'fieldsize' => ('a' x 2048), - 'bodysize' => ('a' x 10260000), + 'bodysize' => ('a' x 131072), 'fieldcount' => 64 ); my %succeed_inputs = ('requestline' => '/', @@ -91,7 +93,7 @@ # if ($chunked) { my ($req, $resp, $url); - $url = Apache::TestRequest::resolve_url('/'); + $url = Apache::TestRequest::resolve_url('/limits/'); $req = HTTP::Request->new(GET => $url); $req->content_type('text/plain'); $req->header('X-Subtest' => $testnum); @@ -108,7 +110,7 @@ } else { ok t_cmp(($goodbad eq 'succeed' ? 200 : 413), - GET_RC('/', content_type => 'text/plain', + GET_RC('/limits/', content_type => 'text/plain', content => $param, 'X-Subtest' => $testnum), "Test #$testnum"); 1.27 +5 -5 httpd-test/perl-framework/t/conf/extra.conf.in Index: extra.conf.in =================================================================== RCS file: /home/cvs/httpd-test/perl-framework/t/conf/extra.conf.in,v retrieving revision 1.26 retrieving revision 1.27 diff -u -r1.26 -r1.27 --- extra.conf.in 2001/11/02 21:03:12 1.26 +++ extra.conf.in 2001/11/08 11:46:38 1.27 @@ -299,12 +299,12 @@ ## -## apache/limits.t: -## LimitRequest* directive testing. Note that LimitRequestBody has -## to be larger than apache/post.t's largest request (currently 10MB), -## or else that test will fail falsely. +## LimitRequest* directive testing ## + LimitRequestLine 128 LimitRequestFieldSize 1024 LimitRequestFields 32 -LimitRequestBody 10250000 + + LimitRequestBody 65536 + 1.1 httpd-test/perl-framework/t/htdocs/limits/index.html Index: index.html =================================================================== Welcome to the limits testing directory