netstat shows connection ESTABLISHED although client is dead.
Hi,
I have an issue with a client/server app where the Server is running under 1.4.2_04 on Solaris 9 using NIO and in this case the Client is connecting in from a Windows XP machine using standard Sockets.
If I bring up a selection of clients, I can see the connections in the ESTABLISHED state using netstat on the Solaris Server.
If I kill these clients, I see this as "Connection reset by peer" IOException on the Server and handle it gracefully.
However, very intermitantly (i.e. once a day while trying to replicate the problem), I can kill a client (ctrl-C) and netstat on the Server still shows the connection as ESTABLISHED. I can even reboot the client machine and the Server still shows the connection as ESTABLSHED. While the Client machine is down, the connection thinks it's ESTABLISHED to an IP address that is no longer accessable. This eventually ties up all the available sockets on the server (the max connected clients is configurable within the Server application) and the Server application has to be restarted to free them.
Does anyone have any idea what might be causing this issue. We only see it on Solaris and we port to most platforms.
Thanks for any help,
Rich.
Message was edited by:
richJTS

