perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Randy Kobes <ra...@theoryx5.uwinnipeg.ca>
Subject Apache2->request in Apache::SizeLimit
Date Mon, 18 Apr 2005 05:41:50 GMT
In the current mp2 svn, Apache::SizeLimit uses
Apache2->request - should that be
Apache2::RequestUtil->request?

===================================================
Index: lib/Apache2/SizeLimit.pm
===================================================================
--- lib/Apache2/SizeLimit.pm	(revision 161613)
+++ lib/Apache2/SizeLimit.pm	(working copy)
@@ -189,7 +189,7 @@
 # to exit if the CGI causes the process to grow too big.
 sub setmax {
     $MAX_PROCESS_SIZE = shift;
-    my $r = shift || Apache2->request();
+    my $r = shift || Apache2::RequestUtil->request();
     unless ($r->pnotes('size_limit_cleanup')) {
         $r->pool->cleanup_register(\&exit_if_too_big, $r);
         $r->pnotes('size_limit_cleanup', 1);
@@ -198,7 +198,7 @@

 sub setmin {
     $MIN_SHARE_SIZE = shift;
-    my $r = shift || Apache2->request();
+    my $r = shift || Apache2::RequestUtil->request();
     unless ($r->pnotes('size_limit_cleanup')) {
         $r->pool->cleanup_register(\&exit_if_too_big, $r);
         $r->pnotes('size_limit_cleanup', 1);
@@ -207,7 +207,7 @@

 sub setmax_unshared {
     $MAX_UNSHARED_SIZE = shift;
-    my $r = shift || Apache2->request();
+    my $r = shift || Apache2::RequestUtil->request();
     unless ($r->pnotes('size_limit_cleanup')) {
         $r->pool->cleanup_register(\&exit_if_too_big, $r);
         $r->pnotes('size_limit_cleanup', 1);

Property changes on: lib/Apache2/SizeLimit.pm
___________________________________________________________________
Name: svn:eol-style
   + native

===================================================================

-- 
best regards,
randy

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message