Re: preloading modules and apache::dbi
Brett Lee <[email protected]>
| Newsgroups | gmane.comp.apache.mod-perl |
|---|---|
| Message-ID | <[email protected]> |
Hi Mike, I believe the answer is that each http process will have its own handle. At least that's what it appears to be when I view the handles via http://hostname/perl-status. Hope you enjoy mod_perl. Best regards, - - Brett Lee Encrypt your data with PDS - http://crypto.brettlee.com/ >________________________________ > From: mike cardeiro <[email protected]> >To: modper <[email protected]> >Sent: Wednesday, January 18, 2012 10:08 PM >Subject: preloading modules and apache::dbi > > >Hi, > > >I am totally new to mod perl (after 13+ years of building web applications on shared servers I now am developing on a dedicated box woo-hoo) > > >I have installed apache::dbi and set it to preload in the apache config file. Here is what I think my problem might be. > > >I have a library I want to preload. This library makes a database connection and assigns it to a variable that is exported so all programs can use this handle. > > >will this global handle db handle be a single handle amongst all apache processes, or will each process load this library on its own thus having a unique db handle for each httpd process? > > >sorry if this is incoherent. > > >Mike Cardeiro > >