On Fri, May 30, 2003 at 05:00:22PM +0100, Neil McBennett wrote:
> Hi, I have a perl script which is using Net::LDAPS.
> The script sits in a loop, and each time round it binds to a directory
> server on port 636. At the end of the loop it does a unbind.
> The problem is that if I run netstat -a  I see CLOSE_WAIT for each time it
> does this... i.e the code is not closing the socket.

->unbind does not cause the socket to be closed. You need to call
->disconnect to do that.

Graham.

> If I stop the script,
> the sockets get closed immediately. Am I doing something wrong here or
> could this be a bug somewhere in the Net:LDAPS code?
> 
> Regards
> /Neil
> 
> 

Reply via email to