RE: mod_perl2 + fork + DBI = Chaos

"Dami Laurent (PJ)" <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
 

>-----Message d'origine-----
>De : Tosh Cooey [mailto:[email protected]] 
>Envoyé : lundi, 25. janvier 2010 17:08
>À : [email protected]
>Objet : mod_perl2 + fork + DBI = Chaos
>
>My application-from-hell is doing odd things probably related to the 
>above storms and culminating in a perfect storm.
>
>Can anyone point me to resources outlining the best way to use the 
>combination in the subject line?
>

See the DBI doc under "InactiveDestroy"; there are some words of advice about forks.

But anyway, as said in that doc, passing a dbh across a fork is not supported by all drivers.
In particular if your "..parent things.." also includes some access to the dbh, then you
might enter into nasty concurrency problems, and that might force you to change the architecture of your app ...

Good luck anyway!

Laurent Dami
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.