Threads are hanging in SocketInputStream.socketRead0 for indefinite time even though a timeout was set

Solution Unverified - Updated -

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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content