You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by Fred Moyer <fr...@redhotpenguin.com> on 2010/09/29 05:52:04 UTC

[RELEASE CANDIDATE] Apache-SizeLimit 0.93 RC1

Please take a minute to download and test this release candidate for
Apache::SizeLimit.  This is especially import for those of you users
who actually *use* Apache::SizeLimit :)  There was an uncaught large
bug in 0.92 which has been resolved for 0.93.

http://people.apache.org/~phred/Apache-SizeLimit-0.93-rc1.tar.gz

Change summary for 0.93:

Fix overlooked bug where handler expected to be called as a method handler,
but was documented to be called like a normal Perl cleanup handler ala
'PerlCleanupHandler Apache2::SizeLimit'
[Fred Moyer <fr...@redhotpenguin.com>

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


Re: [RELEASE CANDIDATE] Apache-SizeLimit 0.93 RC1

Posted by Fred Moyer <fr...@redhotpenguin.com>.
Make sure that you nuke any previously installed versions of SizeLimit
when testing.  The version bundled with mod_perl2 is installed in
i686-lib (or you own arch), and this pure perl version is installed in
site_perl.

I'm wondering how much trouble may be caused if someone installs A::SL
bundled with 2.0.5, then installs the later A::SL version, and runs
into similar @INC issues.

On Wed, Sep 29, 2010 at 9:07 AM, Adam Prime <ad...@utoronto.ca> wrote:
> This turned out to be an @INC ordering problem.  Apache will load now with
> the default config, though it may be a good idea to include the
> PerlLoadModule Apache2::SizeLimit and/or use Apache2::SizeLimit in the
> synopsis.
>
> I'm going to fiddle with this more later
>
> Adam
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
> For additional commands, e-mail: dev-help@perl.apache.org
>
>

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


Re: [RELEASE CANDIDATE] Apache-SizeLimit 0.93 RC1

Posted by Adam Prime <ad...@utoronto.ca>.
This turned out to be an @INC ordering problem.  Apache will load now 
with the default config, though it may be a good idea to include the 
PerlLoadModule Apache2::SizeLimit and/or use Apache2::SizeLimit in the 
synopsis.

I'm going to fiddle with this more later

Adam

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


Re: [RELEASE CANDIDATE] Apache-SizeLimit 0.93 RC1

Posted by Adam Prime <ad...@utoronto.ca>.
On 10-09-29 11:07 AM, Torsten Förtsch wrote:
>
> I suspect that should be either
>
>    <Perl>
>       use Apache2::SizeLimit;
>       Apache2::SizeLimit->set_max_process_size(150_000);
>       Apache2::SizeLimit->set_min_shared_size(10_000);
>       Apache2::SizeLimit->set_max_unshared_size(120_000);
>    </Perl>
>
> or
>
>    PerlLoadModule Apache2::SizeLimit
>    <Perl>
>       Apache2::SizeLimit->set_max_process_size(150_000);
>       Apache2::SizeLimit->set_min_shared_size(10_000);
>       Apache2::SizeLimit->set_max_unshared_size(120_000);
>    </Perl>
>
> PerlModule is executed later.
>

Both of those configs yield the same error message on this box.

Adam

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


Re: [RELEASE CANDIDATE] Apache-SizeLimit 0.93 RC1

Posted by Torsten Förtsch <to...@gmx.net>.
On Wednesday, September 29, 2010 17:01:15 Adam Prime wrote:
> PerlModule Apache2::SizeLimit
> 
> <Perl>
>      Apache2::SizeLimit->set_max_process_size(150_000);
>      Apache2::SizeLimit->set_min_shared_size(10_000);
>      Apache2::SizeLimit->set_max_unshared_size(120_000);
> </Perl>

I suspect that should be either

  <Perl>
     use Apache2::SizeLimit;
     Apache2::SizeLimit->set_max_process_size(150_000);
     Apache2::SizeLimit->set_min_shared_size(10_000);
     Apache2::SizeLimit->set_max_unshared_size(120_000);
  </Perl>

or

  PerlLoadModule Apache2::SizeLimit
  <Perl>
     Apache2::SizeLimit->set_max_process_size(150_000);
     Apache2::SizeLimit->set_min_shared_size(10_000);
     Apache2::SizeLimit->set_max_unshared_size(120_000);
  </Perl>

PerlModule is executed later.

Torsten Förtsch

-- 
Need professional modperl support? Hire me! (http://foertsch.name)

Like fantasy? http://kabatinte.net

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


Re: [RELEASE CANDIDATE] Apache-SizeLimit 0.93 RC1

Posted by Adam Prime <ad...@utoronto.ca>.
after actually reading the documentation i found out this isn't really 
dual lifed, and i should be running Apache2::SizeLimit under mp2. 
However, this still fails with:

\t(in cleanup) Can't locate object method "set_max_process_size" via 
package "Apache2::SizeLimit" at /usr/local/prefork/conf/httpd.conf line 
416.\n
httpd not running, trying to start

I get this using this as the config:

PerlModule Apache2::SizeLimit

<Perl>
     Apache2::SizeLimit->set_max_process_size(150_000);
     Apache2::SizeLimit->set_min_shared_size(10_000);
     Apache2::SizeLimit->set_max_unshared_size(120_000);
</Perl>

PerlCleanupHandler Apache2::SizeLimit

Adam

On 10-09-29 10:51 AM, Adam Prime wrote:
> -1
>
> This code cannot run under mod_perl 2 because it has a 'use
> Apache::Constants' right at the top of SizeLimit.pm.
>
> Adam
>
> On 10-09-28 11:52 PM, Fred Moyer wrote:
>> Please take a minute to download and test this release candidate for
>> Apache::SizeLimit. This is especially import for those of you users
>> who actually *use* Apache::SizeLimit :) There was an uncaught large
>> bug in 0.92 which has been resolved for 0.93.
>>
>> http://people.apache.org/~phred/Apache-SizeLimit-0.93-rc1.tar.gz
>>
>> Change summary for 0.93:
>>
>> Fix overlooked bug where handler expected to be called as a method
>> handler,
>> but was documented to be called like a normal Perl cleanup handler ala
>> 'PerlCleanupHandler Apache2::SizeLimit'
>> [Fred Moyer<fr...@redhotpenguin.com>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
>> For additional commands, e-mail: dev-help@perl.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
> For additional commands, e-mail: dev-help@perl.apache.org
>


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


Re: [RELEASE CANDIDATE] Apache-SizeLimit 0.93 RC1

Posted by Adam Prime <ad...@utoronto.ca>.
-1

This code cannot run under mod_perl 2 because it has a 'use 
Apache::Constants' right at the top of SizeLimit.pm.

Adam

On 10-09-28 11:52 PM, Fred Moyer wrote:
> Please take a minute to download and test this release candidate for
> Apache::SizeLimit.  This is especially import for those of you users
> who actually *use* Apache::SizeLimit :)  There was an uncaught large
> bug in 0.92 which has been resolved for 0.93.
>
> http://people.apache.org/~phred/Apache-SizeLimit-0.93-rc1.tar.gz
>
> Change summary for 0.93:
>
> Fix overlooked bug where handler expected to be called as a method handler,
> but was documented to be called like a normal Perl cleanup handler ala
> 'PerlCleanupHandler Apache2::SizeLimit'
> [Fred Moyer<fr...@redhotpenguin.com>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
> For additional commands, e-mail: dev-help@perl.apache.org
>


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


Re: [RELEASE CANDIDATE] Apache-SizeLimit 0.93 RC1

Posted by Fred Moyer <fr...@redhotpenguin.com>.
+1, 2.6 Linux, 5.8.8, 2.2.8

+1, Darwin, 5.12.2, 2.2.15

On Tue, Sep 28, 2010 at 8:52 PM, Fred Moyer <fr...@redhotpenguin.com> wrote:
> Please take a minute to download and test this release candidate for
> Apache::SizeLimit.  This is especially import for those of you users
> who actually *use* Apache::SizeLimit :)  There was an uncaught large
> bug in 0.92 which has been resolved for 0.93.
>
> http://people.apache.org/~phred/Apache-SizeLimit-0.93-rc1.tar.gz
>
> Change summary for 0.93:
>
> Fix overlooked bug where handler expected to be called as a method handler,
> but was documented to be called like a normal Perl cleanup handler ala
> 'PerlCleanupHandler Apache2::SizeLimit'
> [Fred Moyer <fr...@redhotpenguin.com>
>

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