public class io.undertow.util.ConnectionUtils
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: io.undertow.util.ConnectionUtils
  super_class: java.lang.Object
{
  private static final long MAX_DRAIN_TIME;
    descriptor: J
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL

  static void <clinit>();
    descriptor: ()V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=3, locals=0, args_size=0
         0: .line 41
            ldc "io.undertow.max-drain-time"
            ldc 10000
            invokestatic java.lang.Long.getLong:(Ljava/lang/String;J)Ljava/lang/Long;
            invokevirtual java.lang.Long.longValue:()J
            putstatic io.undertow.util.ConnectionUtils.MAX_DRAIN_TIME:J
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  private void <init>();
    descriptor: ()V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // io.undertow.util.ConnectionUtils this
         0: .line 43
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 45
            return
        end local 0 // io.undertow.util.ConnectionUtils this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lio/undertow/util/ConnectionUtils;

  public static void cleanClose(org.xnio.StreamConnection, java.io.Closeable[]);
    descriptor: (Lorg/xnio/StreamConnection;[Ljava/io/Closeable;)V
    flags: (0x0089) ACC_PUBLIC, ACC_STATIC, ACC_VARARGS
    Code:
      stack=6, locals=3, args_size=2
        start local 0 // org.xnio.StreamConnection connection
        start local 1 // java.io.Closeable[] additional
         0: .line 57
            aload 0 /* connection */
            invokevirtual org.xnio.StreamConnection.getSinkChannel:()Lorg/xnio/conduits/ConduitStreamSinkChannel;
            invokevirtual org.xnio.conduits.ConduitStreamSinkChannel.shutdownWrites:()V
         1: .line 58
            aload 0 /* connection */
            invokevirtual org.xnio.StreamConnection.getSinkChannel:()Lorg/xnio/conduits/ConduitStreamSinkChannel;
            invokevirtual org.xnio.conduits.ConduitStreamSinkChannel.flush:()Z
            ifne 7
         2: .line 59
            aload 0 /* connection */
            invokevirtual org.xnio.StreamConnection.getSinkChannel:()Lorg/xnio/conduits/ConduitStreamSinkChannel;
            new io.undertow.util.ConnectionUtils$1
            dup
            aload 0 /* connection */
            aload 1 /* additional */
            invokespecial io.undertow.util.ConnectionUtils$1.<init>:(Lorg/xnio/StreamConnection;[Ljava/io/Closeable;)V
         3: .line 64
            new io.undertow.util.ConnectionUtils$2
            dup
            aload 0 /* connection */
            aload 1 /* additional */
            invokespecial io.undertow.util.ConnectionUtils$2.<init>:(Lorg/xnio/StreamConnection;[Ljava/io/Closeable;)V
         4: .line 59
            invokestatic org.xnio.ChannelListeners.flushingChannelListener:(Lorg/xnio/ChannelListener;Lorg/xnio/ChannelExceptionHandler;)Lorg/xnio/ChannelListener;
            invokevirtual org.xnio.conduits.ConduitStreamSinkChannel.setWriteListener:(Lorg/xnio/ChannelListener;)V
         5: .line 72
            aload 0 /* connection */
            invokevirtual org.xnio.StreamConnection.getSinkChannel:()Lorg/xnio/conduits/ConduitStreamSinkChannel;
            invokevirtual org.xnio.conduits.ConduitStreamSinkChannel.resumeWrites:()V
         6: .line 73
            goto 16
         7: .line 74
      StackMap locals:
      StackMap stack:
            aload 0 /* connection */
            aload 1 /* additional */
            invokestatic io.undertow.util.ConnectionUtils.doDrain:(Lorg/xnio/StreamConnection;[Ljava/io/Closeable;)V
         8: .line 77
            goto 16
      StackMap locals:
      StackMap stack: java.lang.Throwable
         9: astore 2 /* e */
        start local 2 // java.lang.Throwable e
        10: .line 78
            aload 2 /* e */
            instanceof java.io.IOException
            ifeq 13
        11: .line 79
            getstatic io.undertow.UndertowLogger.REQUEST_IO_LOGGER:Lio/undertow/UndertowLogger;
            aload 2 /* e */
            checkcast java.io.IOException
            invokeinterface io.undertow.UndertowLogger.ioException:(Ljava/io/IOException;)V
        12: .line 80
            goto 14
        13: .line 81
      StackMap locals: java.lang.Throwable
      StackMap stack:
            getstatic io.undertow.UndertowLogger.REQUEST_IO_LOGGER:Lio/undertow/UndertowLogger;
            new java.io.IOException
            dup
            aload 2 /* e */
            invokespecial java.io.IOException.<init>:(Ljava/lang/Throwable;)V
            invokeinterface io.undertow.UndertowLogger.ioException:(Ljava/io/IOException;)V
        14: .line 83
      StackMap locals:
      StackMap stack:
            aload 0 /* connection */
            invokestatic org.xnio.IoUtils.safeClose:(Ljava/io/Closeable;)V
        15: .line 84
            aload 1 /* additional */
            invokestatic org.xnio.IoUtils.safeClose:([Ljava/io/Closeable;)V
        end local 2 // java.lang.Throwable e
        16: .line 86
      StackMap locals:
      StackMap stack:
            return
        end local 1 // java.io.Closeable[] additional
        end local 0 // org.xnio.StreamConnection connection
      LocalVariableTable:
        Start  End  Slot        Name  Signature
            0   17     0  connection  Lorg/xnio/StreamConnection;
            0   17     1  additional  [Ljava/io/Closeable;
           10   16     2           e  Ljava/lang/Throwable;
      Exception table:
        from    to  target  type
           0     8       9  Class java.lang.Throwable
    MethodParameters:
            Name  Flags
      connection  
      additional  

  private static void doDrain(org.xnio.StreamConnection, java.io.Closeable[]);
    descriptor: (Lorg/xnio/StreamConnection;[Ljava/io/Closeable;)V
    flags: (0x008a) ACC_PRIVATE, ACC_STATIC, ACC_VARARGS
    Code:
      stack=7, locals=5, args_size=2
        start local 0 // org.xnio.StreamConnection connection
        start local 1 // java.io.Closeable[] additional
         0: .line 89
            aload 0 /* connection */
            invokevirtual org.xnio.StreamConnection.getSourceChannel:()Lorg/xnio/conduits/ConduitStreamSourceChannel;
            invokevirtual org.xnio.conduits.ConduitStreamSourceChannel.isOpen:()Z
            ifne 4
         1: .line 90
            aload 0 /* connection */
            invokestatic org.xnio.IoUtils.safeClose:(Ljava/io/Closeable;)V
         2: .line 91
            aload 1 /* additional */
            invokestatic org.xnio.IoUtils.safeClose:([Ljava/io/Closeable;)V
         3: .line 92
            return
         4: .line 94
      StackMap locals:
      StackMap stack:
            iconst_1
            invokestatic java.nio.ByteBuffer.allocate:(I)Ljava/nio/ByteBuffer;
            astore 2 /* b */
        start local 2 // java.nio.ByteBuffer b
         5: .line 96
            aload 0 /* connection */
            invokevirtual org.xnio.StreamConnection.getSourceChannel:()Lorg/xnio/conduits/ConduitStreamSourceChannel;
            aload 2 /* b */
            invokevirtual org.xnio.conduits.ConduitStreamSourceChannel.read:(Ljava/nio/ByteBuffer;)I
            istore 3 /* res */
        start local 3 // int res
         6: .line 97
            aload 2 /* b */
            invokevirtual java.nio.ByteBuffer.clear:()Ljava/nio/Buffer;
            pop
         7: .line 98
            iload 3 /* res */
            ifne 14
         8: .line 99
            aload 0 /* connection */
            invokevirtual org.xnio.StreamConnection.getIoThread:()Lorg/xnio/XnioIoThread;
            new io.undertow.util.ConnectionUtils$3
            dup
            aload 0 /* connection */
            aload 1 /* additional */
            invokespecial io.undertow.util.ConnectionUtils$3.<init>:(Lorg/xnio/StreamConnection;[Ljava/io/Closeable;)V
         9: .line 105
            getstatic io.undertow.util.ConnectionUtils.MAX_DRAIN_TIME:J
            getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
        10: .line 99
            invokestatic io.undertow.util.WorkerUtils.executeAfter:(Lorg/xnio/XnioIoThread;Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Lorg/xnio/XnioExecutor$Key;
            astore 4 /* key */
        start local 4 // org.xnio.XnioExecutor$Key key
        11: .line 106
            aload 0 /* connection */
            invokevirtual org.xnio.StreamConnection.getSourceChannel:()Lorg/xnio/conduits/ConduitStreamSourceChannel;
            new io.undertow.util.ConnectionUtils$4
            dup
            aload 2 /* b */
            aload 0 /* connection */
            aload 1 /* additional */
            aload 4 /* key */
            invokespecial io.undertow.util.ConnectionUtils$4.<init>:(Ljava/nio/ByteBuffer;Lorg/xnio/StreamConnection;[Ljava/io/Closeable;Lorg/xnio/XnioExecutor$Key;)V
            invokevirtual org.xnio.conduits.ConduitStreamSourceChannel.setReadListener:(Lorg/xnio/ChannelListener;)V
        12: .line 128
            aload 0 /* connection */
            invokevirtual org.xnio.StreamConnection.getSourceChannel:()Lorg/xnio/conduits/ConduitStreamSourceChannel;
            invokevirtual org.xnio.conduits.ConduitStreamSourceChannel.resumeReads:()V
        end local 4 // org.xnio.XnioExecutor$Key key
        13: .line 129
            goto 24
        14: .line 130
      StackMap locals: java.nio.ByteBuffer int
      StackMap stack:
            aload 0 /* connection */
            invokestatic org.xnio.IoUtils.safeClose:(Ljava/io/Closeable;)V
        15: .line 131
            aload 1 /* additional */
            invokestatic org.xnio.IoUtils.safeClose:([Ljava/io/Closeable;)V
        end local 3 // int res
        16: .line 133
            goto 24
      StackMap locals: org.xnio.StreamConnection java.io.Closeable[] java.nio.ByteBuffer
      StackMap stack: java.lang.Throwable
        17: astore 3 /* e */
        start local 3 // java.lang.Throwable e
        18: .line 134
            aload 3 /* e */
            instanceof java.io.IOException
            ifeq 21
        19: .line 135
            getstatic io.undertow.UndertowLogger.REQUEST_IO_LOGGER:Lio/undertow/UndertowLogger;
            aload 3 /* e */
            checkcast java.io.IOException
            invokeinterface io.undertow.UndertowLogger.ioException:(Ljava/io/IOException;)V
        20: .line 136
            goto 22
        21: .line 137
      StackMap locals: java.lang.Throwable
      StackMap stack:
            getstatic io.undertow.UndertowLogger.REQUEST_IO_LOGGER:Lio/undertow/UndertowLogger;
            new java.io.IOException
            dup
            aload 3 /* e */
            invokespecial java.io.IOException.<init>:(Ljava/lang/Throwable;)V
            invokeinterface io.undertow.UndertowLogger.ioException:(Ljava/io/IOException;)V
        22: .line 139
      StackMap locals:
      StackMap stack:
            aload 0 /* connection */
            invokestatic org.xnio.IoUtils.safeClose:(Ljava/io/Closeable;)V
        23: .line 140
            aload 1 /* additional */
            invokestatic org.xnio.IoUtils.safeClose:([Ljava/io/Closeable;)V
        end local 3 // java.lang.Throwable e
        24: .line 142
      StackMap locals:
      StackMap stack:
            return
        end local 2 // java.nio.ByteBuffer b
        end local 1 // java.io.Closeable[] additional
        end local 0 // org.xnio.StreamConnection connection
      LocalVariableTable:
        Start  End  Slot        Name  Signature
            0   25     0  connection  Lorg/xnio/StreamConnection;
            0   25     1  additional  [Ljava/io/Closeable;
            5   25     2           b  Ljava/nio/ByteBuffer;
            6   16     3         res  I
           11   13     4         key  Lorg/xnio/XnioExecutor$Key;
           18   24     3           e  Ljava/lang/Throwable;
      Exception table:
        from    to  target  type
           5    16      17  Class java.lang.Throwable
    MethodParameters:
            Name  Flags
      connection  final
      additional  final
}
SourceFile: "ConnectionUtils.java"
NestMembers:
  io.undertow.util.ConnectionUtils$1  io.undertow.util.ConnectionUtils$2  io.undertow.util.ConnectionUtils$3  io.undertow.util.ConnectionUtils$4
InnerClasses:
  io.undertow.util.ConnectionUtils$1
  io.undertow.util.ConnectionUtils$2
  io.undertow.util.ConnectionUtils$3
  io.undertow.util.ConnectionUtils$4
  public abstract Key = org.xnio.XnioExecutor$Key of org.xnio.XnioExecutor