My app (jdk 1.8 , on linux) makes about 1000 requests each day with several servers, using the class SOAPConnection.
The problem is that the application hangs on a native method:
java.net.SocketInputStream.socketRead0(Native Method)
I have added a connection timeout and read timeout, and it helped.
But, about every three days, the app hangs on the socketread0 method despite the timeout I've added.
I noticed it happens in very rare cases, but when it happens, it is very critical for my application.