[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#4115) Connection timeouts in back-ldap and back-meta

On Fri, 2005-11-25 at 23:29 +0000, ando@sys-net.it wrote:

> While cleaning up the code, I noted that back-meta has an old,
> undocumented timeout configuration parameter that sets a timeout at the
> client library LDAP handler level.  I don't know if this implements what
> you mean, I don't remember testing it any time, but it might make the
> trick.  There shouldn't be an equivalent in back-ldap, though.  If you
> report successfully, we might consider refreshing, documenting and
> porting that feature back into back-ldap.

This is actually a timeout on the select/poll at the ldap_pvt_connect()
level, so it's not the dual of the idletimeout at the proxy side.  I
think what you mean could be easily implemented by defining a timeout
that applies to connection lookup; so, each cached connection could
carry a timestamp, which is "touched" by setting it to op->o_time any
time it's being returned by ldap_back_getconn() or meta_back_getconn();
if the timeout is defined, and op->o_time > lc->lc_time + timeout, the
connection is dropped and reinitialized.


Ing. Pierangelo Masarati
Responsabile Open Solution

SysNet s.n.c.
Via Dossi, 8 - 27100 Pavia - ITALIA
Office:   +39.02.23998309          
Mobile:   +39.333.4963172
Email:    pierangelo.masarati@sys-net.it