Given this stack trace snippet
Caused by: java.net.SocketException: Software caused connection abort: socket write error
&nbs
Have you checked the Tomcat source code and the JVM source ? That may give you more help.
I think your general thinking is good. I would expect a ConnectException
in the scenario that you couldn't connect. The above looks very like it's client-driven.
My server was throwing this exception in the pass 2 days and I solved it by moving the disconnecting function with:
outputStream.close();
inputStream.close();
Client.close();
To the end of the listing thread. if it will helped anyone.