You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Yann Ramin <at...@atrustrivalie.eu.org> on 2000/10/01 06:56:07 UTC

Re: Managing to kill httpd (why?) semi-solved

Just letting you know the versions of stuff:

Perl 5.6.0
mod_perl 1.24
apache 1.3.12


I've played around with the WebAPI loader and got it to stop crashing (good) 
but the object isn't cached (not good - I need POST data in many places and 
can't depend on PNOTES since that may not be available on the target platform 
(CGI)).

Any idea?

Yann

package Magrathea::WebAPI;


use Carp;
use Magrathea::MyConfig;

# Simple module...simple stuff
BEGIN {

}

  

sub new {
    my $self = {};
    bless $self;
my $driver;  
    my $cfg = Magrathea::MyConfig->new();
    if (!$driver) {
	my $mod = "Magrathea::WebAPI::".$cfg->webapi;
	eval "package Magrathea::_firesafe; require $mod ";
	$driver = eval { $mod->driver() };
	if (!$driver) {
	    print "No driver!\n";
	    die "Ouch...\n";
	}
    }
    return $driver;

}



1;

-- 

--------------------------------------------------------------------
Yann Ramin			atrus@atrustrivalie.eu.org
Atrus Trivalie Productions	www.redshift.com/~yramin
Monterey High IT		www.montereyhigh.com
AIM				oddatrus
Marina, CA

IRM Developer                   Network Toaster Developer
SNTS Developer                  KLevel Developer
--------------------------------------------------------------------