perl-modperl-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r109988 - /perl/modperl/trunk/lib/Apache/SizeLimit.pm
Date Mon, 06 Dec 2004 16:41:12 GMT
Author: stas
Date: Mon Dec  6 08:41:10 2004
New Revision: 109988

URL: http://svn.apache.org/viewcvs?view=rev&rev=109988
Log:
make sure Apache::SizeLimit is called only from non-threaded mpm

Modified:
   perl/modperl/trunk/lib/Apache/SizeLimit.pm

Modified: perl/modperl/trunk/lib/Apache/SizeLimit.pm
Url: http://svn.apache.org/viewcvs/perl/modperl/trunk/lib/Apache/SizeLimit.pm?view=diff&rev=109988&p1=perl/modperl/trunk/lib/Apache/SizeLimit.pm&r1=109987&p2=perl/modperl/trunk/lib/Apache/SizeLimit.pm&r2=109988
==============================================================================
--- perl/modperl/trunk/lib/Apache/SizeLimit.pm	(original)
+++ perl/modperl/trunk/lib/Apache/SizeLimit.pm	Mon Dec  6 08:41:10 2004
@@ -22,6 +22,7 @@
 use Apache::RequestRec ();
 use Apache::RequestUtil ();
 use Apache::Connection ();
+use Apache::MPM ();
 use APR::Pool ();
 use ModPerl::Util ();
 
@@ -215,6 +216,9 @@
 
 sub handler {
     my $r = shift;
+
+    die "Apache::SizeLimit at the moment works only with non-threaded MPMs"
+        if Apache::MPM->is_threaded();
 
     if ($r->is_initial_req()) {
         # we want to operate in a cleanup handler

Mime
View raw message