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

Re: test for connection timeout?



--On Sunday, April 01, 2007 12:52 AM -0400 Brandon McCombs <bmccombs@ma.rr.com> wrote:

Hello,

Can anyone tell me whether OpenLDAP has provisions for a client to
determine whether a connection has timed out proactively instead of
alerting a user that the connection has been closed due to timeout only
after they attempt an operation? If not then I'll know I will have to
roll my own method of keeping the connection alive through a periodic
query of some sort.

You might look at the persistent search function in my Stanford::Directory perl module:


<http://www.stanford.edu/services/directory/clients/perl.html>

which tests to see if the connection has closed, and if it has, reopens it, before performing a search.

--Quanah

--
Quanah Gibson-Mount
Senior Systems Software Developer
ITS/Shared Application Services
Stanford University
GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html