Re: Disconnect database connection after idle timeout

Vincent Veyron <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
On Thu, 13 Nov 2014 16:35:59 -0500
Perrin Harkins <[email protected]> wrote:

> 
> Keep in mind, neither of these work unless you call
> DBI->connect()/connect_cached() at the beginning of every request. You
> can't just keep a DBI handle stashed somewhere and expect that to work.
> 

mmmmh... you're having me worried.

I stash a reference to a DBI handle in pnotes during the HeaderParser phase of my requests; I then refer to this handle for every request in my PerlResponseHandlers.

This seems to have been working fine for several months. Am I doing something wrong?



-- 
					Regards, Vincent Veyron 

https://libremen.com/ 
Legal case, contract and insurance claim management software
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.