I have a socket tcp connection between two java applications. When one side closes the socket the other side remains open. but I want it to be closed. And also I can\'t wait
The usual solution is to let the other side know you are going to close the connection, before actually closing it. For instance, in the case of the SMTP protocol, the server will send '221 Bye' before it closes the connection.