hi!

maybe you should check the ResourcePool::Factory::Net::LDAP module. one of 
it's side effects is that it holds persistent connections. it does also clean 
up broken connections. things like failover and loadbalancing can be done 
with the ResourcePool::LoadBalancer.

the only drawback is that it isn't transparent like Apache::DBI.

-markus

- - - - - - - - - - - - -
            Markus Winand
e-mail: [EMAIL PROTECTED]
   web: www.fatalmind.com

On Mon, 8 Sep 2003, Marco Marongiu wrote:
> [EMAIL PROTECTED] wrote:
> > I would like to change they script so that the opened LDAP-
> > connection is being cached. Would using a global variable to
> > hold the LDAP-object and just checking if it's defined suffice:
> 
> AFAIK, Apache::DBI does exactly the same with DBI handles. Besides, it 
> is completely transparent to the scripts; for example, if you had a 
> script that wasn't designed to take advantage of cached connections, and 
> it explicitly closes the database handle, the script will continue to 
> work but, as you may guess, the dbh won't be closed at all and, maybe, 
> it will find it there the next time it will connect()
> 
> Sorry if my english is not good as my italian :-)
> 
> Ciao
> --M
> 
> 

Reply via email to