On Fri, May 30, 2003 at 05:22:45PM +0100, Neil McBennett wrote: > > > 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. > > Thanks Graham! Sorry for such a newbie question ;)
Not really a newbie thing. ->disconnect was only recently added. Graham.
