svn commit: samba r21263 - in branches: SAMBA_3_0/source/lib
SAMBA_3_0_25/source/lib
Andrew Bartlett
abartlet at samba.org
Fri Feb 9 21:46:22 GMT 2007
On Fri, 2007-02-09 at 16:34 -0500, derrell at samba.org 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 http://samba.org/~abartlet/
Authentication Developer, Samba Team http://samba.org
Samba Developer, Red Hat Inc. http://redhat.com
-------------- 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 : http://lists.samba.org/archive/samba-technical/attachments/20070210/1a3f07ed/attachment.bin
More information about the samba-technical
mailing list