Is there a way to test if a client side socket connection is still alive which may or may not be connected to another java application?
The scenario is I have an application written in Java which I don't have the source code for which accepts client connections. Occasionally, the client connections don't terminate cleanly - (like a disconnect). The server eventually generates a java.net.SocketTimeoutException: Read timed out. This never occurred with Windows 2003 but now generates errors on Windows 2016. This is likely because of the not so clean close from the client.
So I was thinking on trying to see if I can test the viability of these client connections. If their gone, then I'd kill the connection.
Any such luck in doing this - testing the connection if it's alive or not?
I have heard of a Professor Leemon Baird who says that he has proven that his software -- which is written in the Java language -- has solved the two generals problem using a data structure and related algorithms that he has recently discovered.