Seeing SecureNioChannel.doHandshake thread hung waiting for the client to send its handshake in JBoss EAP 6.4

Solution Verified - Updated -

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP) 6.4.6 and earlier

Issue

  • We see threads hung waiting for the client to send its handshake in JBoss EAP 6.4:
"HTTPS NIO Thread - 1" prio=10 tid=0x00007f5864040800 nid=0x29b0 waiting on condition [0x00007f58a0f55000]
   java.lang.Thread.State: WAITING (parking)
        at sun.misc.Unsafe.park(Native Method)
        - parking to wait for  <0x00000000f677c250> (a java.util.concurrent.CountDownLatch$Sync)
        at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
        at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:834)
        at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(AbstractQueuedSynchronizer.java:994)
        at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1303)
        at java.util.concurrent.CountDownLatch.await(CountDownLatch.java:236)
        at sun.nio.ch.PendingFuture.get(PendingFuture.java:180)
        at org.apache.tomcat.util.net.jsse.SecureNioChannel.doHandshake(SecureNioChannel.java:718)
        at org.apache.tomcat.util.net.jsse.SecureNioChannel.handshake(SecureNioChannel.java:650)
        at org.apache.tomcat.util.net.jsse.NioJSSESocketChannelFactory.handshake(NioJSSESocketChannelFactory.java:227)
        at org.apache.tomcat.util.net.NioEndpoint$HandshakeHandler.run(NioEndpoint.java:635)
        ....
  • Are we impacted by CVE-2016-2094?

Resolution

  • Apply JBoss EAP 6.4 Cumulative Patch (CP) 7 or later. Then if needed, increase or decrease the timeout by adjusting org.apache.coyote.http11.DEFAULT_CONNECTION_TIMEOUT system property. The default value is 60000 (60 seconds).

Root Cause

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.