On Wed, 4 Apr 2001, Eric Nichols wrote:
> Everything is running smoothly with Perl-LDAP. After working with
> Netscape's perldap I've found this stuff to be much easier to work with.
>
> I do have one quick question. I've got pretty poor connections here and
> have often lost my LDAP connections. Is there anyway for Perl-LDAP to tell
> me if the connection is down?
Only way I know is to poke it.
There is an LDAP_UNAVAILABLE error code
so you can poke it trap the error try a rebind and
then fail gracefully if the server does not respond.
That would be error 52.
HTH
Who: Ron Hall - + 1 514 398 3718 (th...@tr...)
What: iUnix-Guy, Web-slogger, wizard, casual hero & part-time bartender
When: Some out-of-the-way corner of Time&Space where they serve coffee
Where: Same as above only I'm more grounded
Why: After all is said and done, why not?
Wote: "We who are about to fry, saute you!"
|