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

Mailing List Archive: ModPerl: Dev

Apache2::Reload and fatal warnings

 

 

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


dorian.taylor.lists at gmail

Nov 23, 2009, 8:02 PM

Post #1 of 2 (971 views)
Permalink
Apache2::Reload and fatal warnings

Hey guys, been a while.

Was wondering about the behaviour of Apache2::Reload in modules that
use warnings FATAL => 'all'; it croaks with a Subroutine foo redefined
error which of course is remedied by no warnings 'redefine' in the
offending module. Is there a way to incorporate that into
Apache2::Reload itself or is the scope too narrow?

Regards,

--
Dorian Taylor
http://doriantaylor.com/

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


ryan at livesite

Nov 24, 2009, 3:34 PM

Post #2 of 2 (908 views)
Permalink
Re: Apache2::Reload and fatal warnings [In reply to]

On 11/23/2009 11:02 PM, dorian taylor wrote:
> Hey guys, been a while.
>
> Was wondering about the behaviour of Apache2::Reload in modules that
> use warnings FATAL => 'all'; it croaks with a Subroutine foo redefined
> error which of course is remedied by no warnings 'redefine' in the
> offending module. Is there a way to incorporate that into
> Apache2::Reload itself or is the scope too narrow?
>
> Regards,
>
Set the unload method as so:

$ModPerl::Util::DEFAULT_UNLOAD_METHOD = 'unload_package_xs';

and you will be good to go. I am running with a prefork mpm and use
this to aid with thread, i.e., process, reuse issues:

<IfModule prefork.c>
StartServers 1
MinSpareServers 1
MaxSpareServers 1
ServerLimit 1
MaxClients 1
MaxRequestsPerChild 4000
</IfModule>

The above pragma will also eliminate 'Prototype mismatch' warnings.

Cheers,
-Ryan

OT, would this be better posted to modperl [at] perl?

---------------------------------------------------------------------
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.