title: Is it possible to close Java sockets on both client and server sides?
body: <p>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 on it to see whether it is available or not and after that close it. I want some way to close it completely from one side.
  What can I do?</p>