On Mon, Jun 02, 2003 at 02:52:44PM +0100, Chris Ridd wrote: > On 2/6/03 12:00 pm, Neil McBennett <[EMAIL PROTECTED]> wrote: > > >>>> ->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. > > > > Yes, I discovered that, which brings me on to my next question... I'm > > using perl-ldap-0.27. I cannot easily change the version right now, so I > > am interested in finding a work around for the disconnect issue. Could > > anyone suggest a way to this with version 0.27? > > > > Thanks > > /Neil > > You can use $ldap->socket to get at the IO::Socket::INET instance... The > method existed in 0.27, though it is not documented (it will be soon :-)
You would still have the possibility of a reference loop. Although if you know that there are no pending messages, which will be true unless you are using async, then there will bo none and just closing the socket will be fine Graham.
