[comp.unix.questions] Info needed on TCPIP Sockets during crashes

fuller@kadsma.kodak.COM (Bill Fuller) (12/11/90)

Hi,

	I am using TCP/IP stream sockets between two hosts.  I know that when
either of the processes die, the other process will receive a readable
signal on
the stream but the read will return 0 bytes, basically telling me that the
line has died.  However, I have a problem when one of the hosts crashes.  The
connection stays up, I can still write on the stream, but obviously I can not
read.  Is there some sort of procedure to detect a crashed host versus a busy
host?

			Thanks in advance.

William H. Fuller		Dial: (716)-726-2311
Senior Systems Consultant	UUCP: ...!rochester!kodak!kadsma!fuller
Rochester, N.Y.			ARPA: fuller@kadsma.kodak.com

barmar@think.com (Barry Margolin) (12/11/90)

In article <1990Dec10.230703.22550@usenet@kadsma> fuller@kadsma.kodak.COM (Bill Fuller) writes:
>  Is there some sort of procedure to detect a crashed host versus a busy
>host?

If you try to write to it after it has crashed, you'll get an error when it
finally comes back up.

Until it comes back up, there's no way to distinguish a dead host from one
whose network connector has fallen out, or one that's really, really,
really slow to respond.

--
Barry Margolin, Thinking Machines Corp.

barmar@think.com
{uunet,harvard}!think!barmar