From: Graham B. <gb...@po...> - 2002-02-28 16:19:12
|
On Thu, Feb 28, 2002 at 05:00:55PM +0100, Michael Frankl wrote: > Hi, > > I am using Net::LDAP under a mod_perl environment and have one Problem: > the Socket is alive as long as the apache-child is alive. Sounds like you are storing $ldap in a global variable. > I tried several things to fix it: > > - calling unbind at finalization does not help (netstat-status > CLOSE_WAIT). CLOSE_WAIT is the normal thing to happen. The kernel puts all sockets into CLOSE_WAIT upon close. THis is to prevent reuse of the port number and then getting some rouge packets from the net that were actually sent to the previous process. Graham. > > - i tried to close the socket in the Net::LDAP Module after unbinding: > ------------ > my $msg = $ldap->_sendmesg($mesg); > $ldap->{net_ldap_socket}->shutdown(2); > return $msg; > } > ------------ > The netstat-status after this is close, but the entry does not > disappear. > > > Have you got any ideas that could help me? > > > thanks > Michael > > > |