Threads are hanging in SocketInputStream.socketRead0 for indefinite time even though a timeout was set
Issue
- Threads are stuck in SocketInputStream.socketRead0 for indefinite time even though a read timeout, or receive timeout, was set
- A threaddump is showing a thread reading longer than the specified timeout on SocketInputStream
java.lang.Thread.State: RUNNABLE
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
at java.net.SocketInputStream.read(SocketInputStream.java:171)
at java.net.SocketInputStream.read(SocketInputStream.java:141)
Environment
- Java application including
- Red Hat JBoss Enterprise Application Platform
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
