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 10:43:35 -0500
Perrin Harkins <[email protected]> wrote:

> Apache::DBI should also re-connect with no problems if a request comes in
> after a connection has timed out. If that isn't happening, make sure you
> are using Apache::DBI properly.
> 

Hi Perrin,

Nobody suggested using connect_cached, where the documentations says :

The cached database handle is replaced with a new
       connection if it has been disconnected or if the "ping" method fails

Would that not solve OP's problem?

-- 
					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.