svn commit: samba r4289 -
branches/SAMBA_3_0/source/lib trunk/source/lib
Volker Lendecke
Volker.Lendecke at SerNet.DE
Tue Dec 21 16:42:22 GMT 2004
On Tue, Dec 21, 2004 at 07:44:03AM -0500, David Collier-Brown wrote:
> Volker Lendecke wrote:
> >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?
>
> The traditional ARPA approach is to send a no-op, and
> see if the machine at the other end responds. This
> is done IFF a delay is unacceptable: if you can wait,
> you issue a read and wait for it to come back. This
> is to allow resilience during temporary network outages.
>
> All the old protocols like ftp, smtp, etc. have either
> explicit no-ops or implicit ones, harmless operations.
This is just not possible, I'm talking about the socket inside an LDAP RFC API
struct. I can't just read from that socket, as this would kill the LDAP data
stream.
Volker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20041221/b4e18457/attachment.bin
More information about the samba-technical
mailing list