svn commit: samba r4289 - branches/SAMBA_3_0/source/lib trunk/source/lib

David Collier-Brown davec-b at rogers.com
Tue Dec 21 12:44:03 GMT 2004


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.

--dave
-- 
David Collier-Brown,         | Always do right. This will gratify
System Programmer and Author | some people and astonish the rest
davecb at spamcop.net           |                      -- Mark Twain


More information about the samba-technical mailing list