From: Graham B. <gb...@po...> - 2002-02-28 13:36:00
|
On Thu, Feb 28, 2002 at 02:27:27PM +0100, Benning Markus wrote: > ok i'll try to close the old socket first. > > But its still a bug in perl-ldap or IO::Socket::SSL. Yes its a bug in IO::Socket::SSL > start_tls should return with a error and not > crash down the whole script. Right. > Why does it work with LDAPS ? No idea, maybe its in the code in IO::Socket::SSL that takes an existing socket and converts it to an SSL socket. > How do i destory the whole Net::LDAP object with all its connections etc ? Remove all references to it. You can get the socket by calling $ldap->socket if you want. Graham. > > best thanks, > > Markus > > On Thu, Feb 28, 2002 at 01:10:28PM +0000, Graham Barr wrote: > > On Thu, Feb 28, 2002 at 09:57:58AM +0100, Markus Benning wrote: > > > When it is call the second time the programm exits with: > > > Can't call method "get_context_handle" without a package or object reference > > > at /usr/lib/perl5/site_perl/5.6.0/IO/Socket/SSL.pm line 602, <> line 2. > > > > > > Is this a error in the IO::Socket::SSL Module ? > > > Must i close the previous connection first or clean it ? > > > > IO::Socket::SSL can only handle one open connection at any one time. > > So, try closing the old SSL socket first. > > > > Graham. > > -- > Markus Benning > > .^. > /V\ Tel. : +49 9131 7 21713 > /( )\ Email: Mar...@si... > ^^-^^ __________________________________ > |