How to prevent hangs on SocketInputStream.socketRead0 in Java?
问题 Performing millions of HTTP requests with different Java libraries gives me threads hanged on: java.net.SocketInputStream.socketRead0() Which is native function. I tried to set up Apche Http Client and RequestConfig to have timeouts on (I hope) everythig that is possible but still, I have (probably infinite) hangs on socketRead0 . How to get rid of them? Hung ratio is about ~1 per 10000 requests (to 10000 different hosts) and it can last probably forever (I've confirmed thread hung as still