You are viewing a plain text version of this content. The canonical link for it is here.
Posted to test-cvs@httpd.apache.org by gb...@apache.org on 2001/11/08 12:46:38 UTC
cvs commit: httpd-test/perl-framework/t/htdocs/limits index.html
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
+# <Directory @SERVERROOT@/htdocs/limits>
+# LimitRequestBody 65536
+# </Directory>
#
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 @@
</IfModule>
##
-## 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
+<Directory @SERVERROOT@/htdocs/limits>
+ LimitRequestBody 65536
+</Directory>
1.1 httpd-test/perl-framework/t/htdocs/limits/index.html
Index: index.html
===================================================================
Welcome to the limits testing directory
Re: cvs commit: httpd-test/perl-framework/t/htdocs/limits index.html
Posted by Rodent of Unusual Size <Ke...@Golux.Com>.
gbenson@apache.org wrote:
>
> 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
Thanks, Gary; I misread the scope of the directive when I wrote
the test. This is much better.
--
#ken P-)}
Ken Coar, Sanagendamgagwedweinini http://Golux.Com/coar/
Author, developer, opinionist http://Apache-Server.Com/
"All right everyone! Step away from the glowing hamburger!"