Author: perrin
Date: Mon Dec  6 21:07:45 2004
New Revision: 110077

URL: http://svn.apache.org/viewcvs?view=rev&rev=110077
Log:
update doc to explain GlobalRequest issue
Modified:
   perl/modperl/docs/trunk/src/docs/2.0/api/Apache/SizeLimit.pod

Modified: perl/modperl/docs/trunk/src/docs/2.0/api/Apache/SizeLimit.pod
Url: 
http://svn.apache.org/viewcvs/perl/modperl/docs/trunk/src/docs/2.0/api/Apache/SizeLimit.pod?view=diff&rev=110077&p1=perl/modperl/docs/trunk/src/docs/2.0/api/Apache/SizeLimit.pod&r1=110076&p2=perl/modperl/docs/trunk/src/docs/2.0/api/Apache/SizeLimit.pod&r2=110077
==============================================================================
--- perl/modperl/docs/trunk/src/docs/2.0/api/Apache/SizeLimit.pod       
(original)
+++ perl/modperl/docs/trunk/src/docs/2.0/api/Apache/SizeLimit.pod       Mon Dec 
 6 21:07:45 2004
@@ -32,6 +32,14 @@
   Apache::SizeLimit::setmin(6000);
   Apache::SizeLimit::setmax_unshared(5000);
 
+This will work in places where you are using C<SetHandler perl-script> 
+or anywhere you enable C<PerlOptions +GlobalRequest>.  If you want to 
+avoid turning on C<GlobalRequest>, you can pass an C<Apache::RequestRec> 
+object as the second argument in these subs:
+
+  my $r = shift;
+  Apache::SizeLimit::setmax(12000, $r);
+
 Since checking the process size can take a few system calls on some
 platforms (e.g. linux), you may want to only check the process size
 every N times.  To do so, put this in your startup.pl or CGI:

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to