I have a thread that executes the following code:
public void run() { try { int n = 0; byte[] buffer = new byte[4096]; while ((n
Is it safe to close in stream in other thread? It works for me. In this case, in.read(...) throws exception SocketException.
in.read(...)
SocketException