Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-3577

Blocked Thread when Remote Client Terminates

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 7.1.1.Final
    • Component/s: Remoting
    • Labels:
      None

      Description

      If a remote client is killed which was connected to AS7 using a SSL connection the thread handling the close gets stuck as: -

      "Remoting "localhost:MANAGEMENT" read-1" prio=10 tid=0x00007ff3f8170800 nid=0x7b2e runnable [0x00007ff3d70ee000]
         java.lang.Thread.State: RUNNABLE
      	at sun.nio.ch.FileDispatcher.read0(Native Method)
      	at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:21)
      	at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:198)
      	at sun.nio.ch.IOUtil.read(IOUtil.java:171)
      	at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:243)
      	- locked <0x00000000e12542e8> (a java.lang.Object)
      	at org.xnio.nio.AbstractNioStreamChannel.read(AbstractNioStreamChannel.java:249)
      	at org.xnio.ssl.JsseConnectedSslStreamChannel.handleUnwrapResult(JsseConnectedSslStreamChannel.java:522)
      	- locked <0x00000000e08a3e38> (a org.xnio.ByteBufferSlicePool$PooledByteBuffer)
      	at org.xnio.ssl.JsseConnectedSslStreamChannel.handleHandshake(JsseConnectedSslStreamChannel.java:396)
      	- locked <0x00000000e08a3e38> (a org.xnio.ByteBufferSlicePool$PooledByteBuffer)
      	at org.xnio.ssl.JsseConnectedSslStreamChannel.doFlush(JsseConnectedSslStreamChannel.java:634)
      	at org.xnio.ssl.JsseConnectedSslStreamChannel.flushAction(JsseConnectedSslStreamChannel.java:609)
      	- locked <0x00000000e08a3ea0> (a org.xnio.ByteBufferSlicePool$PooledByteBuffer)
      	at org.xnio.channels.TranslatingSuspendableChannel.flush(TranslatingSuspendableChannel.java:604)
      	at org.xnio.channels.FramedMessageChannel.doFlush(FramedMessageChannel.java:299)
      	at org.xnio.channels.FramedMessageChannel.closeAction(FramedMessageChannel.java:307)
      	- locked <0x00000000e08a40b0> (a org.xnio.Buffers$4)
      	at org.xnio.channels.TranslatingSuspendableChannel.close(TranslatingSuspendableChannel.java:811)
      	at org.xnio.IoUtils.safeClose(IoUtils.java:137)
      	at org.jboss.remoting3.remote.RemoteConnection.handleException(RemoteConnection.java:101)
      	at org.jboss.remoting3.remote.RemoteConnection$RemoteWriteListener.shutdownWrites(RemoteConnection.java:242)
      	- locked <0x00000000e1254070> (a org.jboss.remoting3.remote.RemoteConnection)
      	at org.jboss.remoting3.remote.RemoteConnection.shutdownWrites(RemoteConnection.java:118)
      	at org.jboss.remoting3.remote.RemoteConnectionHandler.handleConnectionClose(RemoteConnectionHandler.java:128)
      	at org.jboss.remoting3.remote.RemoteReadListener.handleEvent(RemoteReadListener.java:75)
      	at org.jboss.remoting3.remote.RemoteReadListener.handleEvent(RemoteReadListener.java:42)
      	at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:72)
      	at org.xnio.channels.TranslatingSuspendableChannel.handleReadable(TranslatingSuspendableChannel.java:189)
      	at org.xnio.channels.TranslatingSuspendableChannel$1.handleEvent(TranslatingSuspendableChannel.java:103)
      	at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:72)
      	at org.xnio.channels.TranslatingSuspendableChannel.handleReadable(TranslatingSuspendableChannel.java:189)
      	at org.xnio.ssl.JsseConnectedSslStreamChannel.handleReadable(JsseConnectedSslStreamChannel.java:180)
      	at org.xnio.channels.TranslatingSuspendableChannel$1.handleEvent(TranslatingSuspendableChannel.java:103)
      	at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:72)
      	at org.xnio.nio.NioHandle.run(NioHandle.java:90)
      	at org.xnio.nio.WorkerThread.run(WorkerThread.java:184)
      

      After this new clients can not connect and the server can not be shut down.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                dmlloyd David Lloyd
                Reporter:
                dlofthouse Darran Lofthouse
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: