Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: Dev

[RELEASE CANDIDATE] Apache-SizeLimit 0.93 RC1

 

 

ModPerl dev RSS feed   Index | Next | Previous | View Threaded


fred at redhotpenguin

Sep 28, 2010, 8:52 PM

Post #1 of 9 (1235 views)
Permalink
[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 <fred [at] redhotpenguin>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe [at] perl
For additional commands, e-mail: dev-help [at] perl


adam.prime at utoronto

Sep 29, 2010, 7:51 AM

Post #2 of 9 (1232 views)
Permalink
Re: [RELEASE CANDIDATE] Apache-SizeLimit 0.93 RC1 [In reply to]

-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<fred [at] redhotpenguin>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe [at] perl
> For additional commands, e-mail: dev-help [at] perl
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe [at] perl
For additional commands, e-mail: dev-help [at] perl


adam.prime at utoronto

Sep 29, 2010, 8:01 AM

Post #3 of 9 (1206 views)
Permalink
Re: [RELEASE CANDIDATE] Apache-SizeLimit 0.93 RC1 [In reply to]

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<fred [at] redhotpenguin>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe [at] perl
>> For additional commands, e-mail: dev-help [at] perl
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe [at] perl
> For additional commands, e-mail: dev-help [at] perl
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe [at] perl
For additional commands, e-mail: dev-help [at] perl


torsten.foertsch at gmx

Sep 29, 2010, 8:07 AM

Post #4 of 9 (1215 views)
Permalink
Re: [RELEASE CANDIDATE] Apache-SizeLimit 0.93 RC1 [In reply to]

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 [at] perl
For additional commands, e-mail: dev-help [at] perl


adam.prime at utoronto

Sep 29, 2010, 8:43 AM

Post #5 of 9 (1204 views)
Permalink
Re: [RELEASE CANDIDATE] Apache-SizeLimit 0.93 RC1 [In reply to]

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 [at] perl
For additional commands, e-mail: dev-help [at] perl


adam.prime at utoronto

Sep 29, 2010, 9:07 AM

Post #6 of 9 (1210 views)
Permalink
Re: [RELEASE CANDIDATE] Apache-SizeLimit 0.93 RC1 [In reply to]

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 [at] perl
For additional commands, e-mail: dev-help [at] perl


fred at redhotpenguin

Sep 29, 2010, 12:09 PM

Post #7 of 9 (1211 views)
Permalink
Re: [RELEASE CANDIDATE] Apache-SizeLimit 0.93 RC1 [In reply to]

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 <adam.prime [at] utoronto> 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 [at] perl
> For additional commands, e-mail: dev-help [at] perl
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe [at] perl
For additional commands, e-mail: dev-help [at] perl


fred at redhotpenguin

Sep 29, 2010, 12:16 PM

Post #8 of 9 (1204 views)
Permalink
Re: [RELEASE CANDIDATE] Apache-SizeLimit 0.93 RC1 [In reply to]

+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 <fred [at] redhotpenguin> 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 <fred [at] redhotpenguin>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe [at] perl
For additional commands, e-mail: dev-help [at] perl


fred at redhotpenguin

Sep 29, 2010, 12:16 PM

Post #9 of 9 (1208 views)
Permalink
Re: [RELEASE CANDIDATE] Apache-SizeLimit 0.93 RC1 [In reply to]

+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 <fred [at] redhotpenguin> 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 <fred [at] redhotpenguin>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe [at] perl
For additional commands, e-mail: dev-help [at] perl

ModPerl dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.