Re: Apache2/Modperl2 fails to preload Win32::OLE at server startup

[prev] [thread] [next] [Date index for 2004/11/30]

From: Stas Bekman
Subject: Re: Apache2/Modperl2 fails to preload Win32::OLE at server startup
Date: 15:43 on 30 Nov 2004
Thierry Valentin wrote:
> Hello all
> the discussion has become a little bit technical for me...
> 
> What I understand is that I've been lucky to make this work so far and 
> that sooner or later I will end up with some problems.

I'm not familiar with win32-perl internals, but based on what Jan 
explained so far I suspect that you may have the problem. I could be wrong 
though. Jan will probably know better to answer this question.

> Is there some not-too-complicated way to workaround the problems in the 
> perl scripts or at least prevent the most severe problems to happen?
> 
> NOTE: Actually what I'm currently doing is a authentication handler 
> derived from Apache::AuthCookie. My handler is connecting to a database 
> through Win32::OLE to authenticate users. Active connections are kept in 
> a cache until users logout.
>  From what I understand of Jan's answer: should I keep an active 
> connection per thread-id?

I don't think this will work. You could try to run a daemon which will do 
the auth (i.e. taking win32::OLE out of picture) and have your modperl 
scripts talk to that daemon when they need auth.

I think your best solution is to get linux or another unix flavor and then 
you will be on the safe ground (at least with prefork mpm). I think 99.9% 
of modperl users use some Unix flavor, so things are much more solid on 
this side of the world.

        -- 
        __________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@xxxxxx.xxx http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

(message missing)

Re: Apache2/Modperl2 fails to preload Win32::OLE at server startup
Stas Bekman 15:43 on 30 Nov 2004

Generated at 11:26 on 21 Dec 2004 by mariachi v0.52