svn commit: samba r4289 - branches/SAMBA_3_0/source/lib trunk
/source/lib
Green, Paul
Paul.Green at stratus.com
Tue Dec 21 16:03:03 GMT 2004
Volker Lendecke wrote:
> On Mon, Dec 20, 2004 at 06:42:59PM +0000, gd at samba.org wrote:
> > This fixes a deadlock-situation when ldapsam is used with the ldapi
> > interface: getpeername won't fail while trying to detect dead
>
> I think a failing getpeername just *will* fail as an
> indication of a unix domain socket whose other end
> has disconnected.
>
> Anybody out here who knows the standard way to detect a
> socket who is not connected anymore just because the
> other end has closed the connection?
My reading of Stevens, Fenner & Rudoff suggests that if the other end closes
a socket you should get end-of-file after you have read any pending data.
PG
More information about the samba-technical
mailing list