I have a problem with handling socket in java. I am running a TCP server with multiple client connections.
For performance reason, I used a simple thread pool to h
How can I set Socket write timout in java?
You can't. There is no socket write timeout in Java. Unless you make the hyperjump to NIO, non-blocking mode, Selectors, etc.
I got tons of exception flooding
SocketException: Broken pipefromout.write(buffer);
You should only get one. You should close the socket when you get this exception.