svn commit: samba r21263 - in branches: SAMBA_3_0/source/lib SAMBA_3_0_25/source/lib

Andrew Bartlett abartlet at
Fri Feb 9 21:46:22 GMT 2007

On Fri, 2007-02-09 at 16:34 -0500, derrell at wrote:
> Volker Lendecke <Volker.Lendecke at SerNet.DE> writes:
> > I did the following test: Connect to smbd (ldapsam) with rpcclient, restart
> > the ldap server, the conn is in CLOSE_WAIT, issue a "querydominfo" in
> > rpcclient to make smbd issue an ldap call.
> >
> > strace on that smbd showed that getpeername() on the connection in
> > CLOSE_WAIT returned 0 (no error). Bad.
> Definitely bad.  There's no call to getpeername() in another_ldap_try(), and I
> don't see what change you made to solve this problem.  How do you now properly
> detect that the peer closed the connection?

You can detect that when the socket is available for reading, but
returns 0 data.

Andrew Bartlett

Andrew Bartlett                      
Authentication Developer, Samba Team 
Samba Developer, Red Hat Inc.        
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url :

More information about the samba-technical mailing list