Re: LdapConnectionPool.getConnection doing extraneous search?

2021-03-23 Thread Emmanuel Lécharny
On 23/03/2021 14:24, Shawn McKinney wrote: On Mar 23, 2021, at 3:00 AM, Emmanuel Lécharny wrote: On 22/03/2021 19:41, Shawn McKinney wrote: On Mar 22, 2021, at 11:05 AM, Emmanuel Lécharny wrote: LDAP connections are quite stable. Again, this check is there to respect the

Re: LdapConnectionPool.getConnection doing extraneous search?

2021-03-23 Thread Shawn McKinney
> On Mar 23, 2021, at 3:00 AM, Emmanuel Lécharny wrote: > > > On 22/03/2021 19:41, Shawn McKinney wrote: >>> On Mar 22, 2021, at 11:05 AM, Emmanuel Lécharny wrote: >>> >>> LDAP connections are quite stable. Again, this check is there to respect >>> the commons-pool API contract. If the

Re: LdapConnectionPool.getConnection doing extraneous search?

2021-03-23 Thread Shawn McKinney
> On Mar 22, 2021, at 2:21 PM, Stefan Seelmann wrote: > > Would a Java Dynamic Proxy help? > > It would implement the LdapConnection interface. > > When a method is invoked it borrows a connection from the pool (without > testing it), executes the method, returns the connection to the pool,

Re: LdapConnectionPool.getConnection doing extraneous search?

2021-03-23 Thread Emmanuel Lécharny
On 22/03/2021 19:41, Shawn McKinney wrote: On Mar 22, 2021, at 11:05 AM, Emmanuel Lécharny wrote: LDAP connections are quite stable. Again, this check is there to respect the commons-pool API contract. If the connection is dead, then doing this check will let the pool fetching another