Begin forwarded message:

From: Frank Koenen <[EMAIL PROTECTED]>
Date: Wed Jul 9, 2003  15:57:45 US/Pacific
To: [EMAIL PROTECTED]
Subject: question on Net::LDAP
Reply-To: [EMAIL PROTECTED]

Graham,

Quick question on Net::LDAP.

Is there a way that I could detect if the LDAP server has closed down
the network socket after I've connected and/or binded to the server?

I'm using the Perl POE module and have persistent connection to the LDAP
server. If I shutdown the LDAP server, after the I've already done a
bind to it, then restart the LDAP server, the Perl program seems to be
in some kind of a undefined state. Looks like the sockets are all messed
up, as you would expect.


Is there  a way I could detect that my file-descriptor of the socket
connection to the LDAP server is invalid? I'd like to do this before
using it to perform searches, modifications, etc. to the server?


-- Frank Koenen <[EMAIL PROTECTED]> Website: http://www.feweb.net





Reply via email to