under 'Warn On' Apache::SizeLimit prints:

Use of uninitialized value.

because post_connection() expects a return status from the callback
function. This patch fixes this:

(I'm not sure whether OK, is the right status, maybe DECLINED is the best)

--- Apache/SizeLimit.pm.orig    Mon Oct 16 22:48:18 2000
+++ Apache/SizeLimit.pm Mon Oct 16 22:55:21 2000
@@ -172,9 +172,9 @@
 
 sub exit_if_too_big {
     my $r = shift;
-    return if ($REQUEST_COUNT++ < $CHECK_EVERY_N_REQUESTS);
+    return OK if ($REQUEST_COUNT++ < $CHECK_EVERY_N_REQUESTS);
     $REQUEST_COUNT = 1;
-    if (defined($MAX_PROCESS_SIZE)) {
+    if ($MAX_PROCESS_SIZE) {
        my $size = &$HOW_BIG_IS_IT();
        if ($size > $MAX_PROCESS_SIZE) {
            # I have no idea if this will work on anything but UNIX
@@ -188,6 +188,7 @@
     } else {
        &error_log("you didn't set
\$Apache::SizeLimit::MAX_PROCESS_SIZE");
     }
+    return OK;
 }
 
 # setmax can be called from within a CGI/Registry script to tell the
httpd


I've the same problem in Apache::GTopLimit -- will fix it.

_____________________________________________________________________
Stas Bekman              JAm_pH     --   Just Another mod_perl Hacker
http://stason.org/       mod_perl Guide  http://perl.apache.org/guide 
mailto:[EMAIL PROTECTED]   http://apachetoday.com http://jazzvalley.com
http://singlesheaven.com http://perlmonth.com   perl.org   apache.org


Reply via email to