views:

57

answers:

1

How can I know if a node that is being accessed using TCP socket is alive or if the connection was interrupted and other errors?

Thanks!

+2  A: 

You can't. Any intermediate nodes can drop your packets or the reply packets from the remote node.

florin
+1: It's down when you get an EOF or an Exception. Until then, it's up.
S.Lott