class jdk.internal.net.http.PlainHttpConnection extends jdk.internal.net.http.HttpConnection
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.internal.net.http.PlainHttpConnection
super_class: jdk.internal.net.http.HttpConnection
{
private final java.lang.Object reading;
descriptor: Ljava/lang/Object;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
protected final java.nio.channels.SocketChannel chan;
descriptor: Ljava/nio/channels/SocketChannel;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
private final jdk.internal.net.http.SocketTube tube;
descriptor: Ljdk/internal/net/http/SocketTube;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final jdk.internal.net.http.HttpConnection$PlainHttpPublisher writePublisher;
descriptor: Ljdk/internal/net/http/HttpConnection$PlainHttpPublisher;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private volatile boolean connected;
descriptor: Z
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private boolean closed;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private volatile jdk.internal.net.http.PlainHttpConnection$ConnectTimerEvent connectTimerEvent;
descriptor: Ljdk/internal/net/http/PlainHttpConnection$ConnectTimerEvent;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Ljdk/internal/net/http/PlainHttpConnection;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic jdk.internal.net.http.PlainHttpConnection.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
private jdk.internal.net.http.PlainHttpConnection$ConnectTimerEvent newConnectTimer(jdk.internal.net.http.Exchange<?>, java.util.concurrent.CompletableFuture<java.lang.Void>);
descriptor: (Ljdk/internal/net/http/Exchange;Ljava/util/concurrent/CompletableFuture;)Ljdk/internal/net/http/PlainHttpConnection$ConnectTimerEvent;
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual jdk.internal.net.http.Exchange.remainingConnectTimeout:()Ljava/util/Optional;
aconst_null
invokevirtual java.util.Optional.orElse:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.time.Duration
astore 3
start local 3 1: aload 3
ifnull 4
2: new jdk.internal.net.http.PlainHttpConnection$ConnectTimerEvent
dup
aload 0
aload 3
aload 1
aload 2
invokespecial jdk.internal.net.http.PlainHttpConnection$ConnectTimerEvent.<init>:(Ljdk/internal/net/http/PlainHttpConnection;Ljava/time/Duration;Ljdk/internal/net/http/Exchange;Ljava/util/concurrent/CompletableFuture;)V
astore 4
start local 4 3: aload 4
areturn
end local 4 4: StackMap locals: java.time.Duration
StackMap stack:
aconst_null
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/internal/net/http/PlainHttpConnection;
0 5 1 exchange Ljdk/internal/net/http/Exchange<*>;
0 5 2 cf Ljava/util/concurrent/CompletableFuture<Ljava/lang/Void;>;
1 5 3 duration Ljava/time/Duration;
3 4 4 cte Ljdk/internal/net/http/PlainHttpConnection$ConnectTimerEvent;
Signature: (Ljdk/internal/net/http/Exchange<*>;Ljava/util/concurrent/CompletableFuture<Ljava/lang/Void;>;)Ljdk/internal/net/http/PlainHttpConnection$ConnectTimerEvent;
MethodParameters:
Name Flags
exchange
cf
public java.util.concurrent.CompletableFuture<java.lang.Void> connectAsync(jdk.internal.net.http.Exchange<?>);
descriptor: (Ljdk/internal/net/http/Exchange;)Ljava/util/concurrent/CompletableFuture;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: new jdk.internal.net.http.common.MinimalFuture
dup
invokespecial jdk.internal.net.http.common.MinimalFuture.<init>:()V
astore 2
start local 2 1: getstatic jdk.internal.net.http.PlainHttpConnection.$assertionsDisabled:Z
ifne 2
aload 0
getfield jdk.internal.net.http.PlainHttpConnection.connected:Z
ifeq 2
new java.lang.AssertionError
dup
ldc "Already connected"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
2: StackMap locals: java.util.concurrent.CompletableFuture
StackMap stack:
getstatic jdk.internal.net.http.PlainHttpConnection.$assertionsDisabled:Z
ifne 3
aload 0
getfield jdk.internal.net.http.PlainHttpConnection.chan:Ljava/nio/channels/SocketChannel;
invokevirtual java.nio.channels.SocketChannel.isBlocking:()Z
ifeq 3
new java.lang.AssertionError
dup
ldc "Unexpected blocking channel"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
3: StackMap locals:
StackMap stack:
aload 0
aload 0
aload 1
aload 2
invokevirtual jdk.internal.net.http.PlainHttpConnection.newConnectTimer:(Ljdk/internal/net/http/Exchange;Ljava/util/concurrent/CompletableFuture;)Ljdk/internal/net/http/PlainHttpConnection$ConnectTimerEvent;
putfield jdk.internal.net.http.PlainHttpConnection.connectTimerEvent:Ljdk/internal/net/http/PlainHttpConnection$ConnectTimerEvent;
4: aload 0
getfield jdk.internal.net.http.PlainHttpConnection.connectTimerEvent:Ljdk/internal/net/http/PlainHttpConnection$ConnectTimerEvent;
ifnull 8
5: aload 0
getfield jdk.internal.net.http.PlainHttpConnection.debug:Ljdk/internal/net/http/common/Logger;
invokeinterface jdk.internal.net.http.common.Logger.on:()Z
ifeq 7
6: aload 0
getfield jdk.internal.net.http.PlainHttpConnection.debug:Ljdk/internal/net/http/common/Logger;
new java.lang.StringBuilder
dup
ldc "registering connect timer: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield jdk.internal.net.http.PlainHttpConnection.connectTimerEvent:Ljdk/internal/net/http/PlainHttpConnection$ConnectTimerEvent;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;)V
7: StackMap locals:
StackMap stack:
aload 0
invokevirtual jdk.internal.net.http.PlainHttpConnection.client:()Ljdk/internal/net/http/HttpClientImpl;
aload 0
getfield jdk.internal.net.http.PlainHttpConnection.connectTimerEvent:Ljdk/internal/net/http/PlainHttpConnection$ConnectTimerEvent;
invokevirtual jdk.internal.net.http.HttpClientImpl.registerTimer:(Ljdk/internal/net/http/TimeoutEvent;)V
8: StackMap locals:
StackMap stack:
aload 0
invokedynamic run(Ljdk/internal/net/http/PlainHttpConnection;)Ljava/security/PrivilegedExceptionAction;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
jdk/internal/net/http/PlainHttpConnection.lambda$0()Ljava/lang/Boolean; (7)
()Ljava/lang/Boolean;
9: astore 4
start local 4 10: aload 4
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
istore 3
start local 3 11: goto 14
end local 3 StackMap locals: jdk.internal.net.http.PlainHttpConnection jdk.internal.net.http.Exchange java.util.concurrent.CompletableFuture top java.security.PrivilegedExceptionAction
StackMap stack: java.security.PrivilegedActionException
12: astore 5
start local 5 13: aload 5
invokevirtual java.security.PrivilegedActionException.getCause:()Ljava/lang/Throwable;
athrow
end local 5 start local 3 14: StackMap locals: jdk.internal.net.http.PlainHttpConnection jdk.internal.net.http.Exchange java.util.concurrent.CompletableFuture int java.security.PrivilegedExceptionAction
StackMap stack:
iload 3
ifeq 18
15: aload 0
getfield jdk.internal.net.http.PlainHttpConnection.debug:Ljdk/internal/net/http/common/Logger;
invokeinterface jdk.internal.net.http.common.Logger.on:()Z
ifeq 16
aload 0
getfield jdk.internal.net.http.PlainHttpConnection.debug:Ljdk/internal/net/http/common/Logger;
ldc "connect finished without blocking"
invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;)V
16: StackMap locals:
StackMap stack:
aload 2
aconst_null
invokevirtual java.util.concurrent.CompletableFuture.complete:(Ljava/lang/Object;)Z
pop
17: goto 28
18: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.PlainHttpConnection.debug:Ljdk/internal/net/http/common/Logger;
invokeinterface jdk.internal.net.http.common.Logger.on:()Z
ifeq 19
aload 0
getfield jdk.internal.net.http.PlainHttpConnection.debug:Ljdk/internal/net/http/common/Logger;
ldc "registering connect event"
invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;)V
19: StackMap locals:
StackMap stack:
aload 0
invokevirtual jdk.internal.net.http.PlainHttpConnection.client:()Ljdk/internal/net/http/HttpClientImpl;
new jdk.internal.net.http.PlainHttpConnection$ConnectEvent
dup
aload 0
aload 2
invokespecial jdk.internal.net.http.PlainHttpConnection$ConnectEvent.<init>:(Ljdk/internal/net/http/PlainHttpConnection;Ljava/util/concurrent/CompletableFuture;)V
invokevirtual jdk.internal.net.http.HttpClientImpl.registerEvent:(Ljdk/internal/net/http/AsyncEvent;)V
end local 4 end local 3 20: goto 28
StackMap locals: jdk.internal.net.http.PlainHttpConnection jdk.internal.net.http.Exchange java.util.concurrent.CompletableFuture
StackMap stack: java.lang.Throwable
21: astore 3
start local 3 22: aload 2
aload 3
invokestatic jdk.internal.net.http.common.Utils.toConnectException:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
invokevirtual java.util.concurrent.CompletableFuture.completeExceptionally:(Ljava/lang/Throwable;)Z
pop
23: aload 0
invokevirtual jdk.internal.net.http.PlainHttpConnection.close:()V
24: goto 28
StackMap locals: jdk.internal.net.http.PlainHttpConnection jdk.internal.net.http.Exchange java.util.concurrent.CompletableFuture java.lang.Throwable
StackMap stack: java.lang.Exception
25: pop
26: aload 0
getfield jdk.internal.net.http.PlainHttpConnection.debug:Ljdk/internal/net/http/common/Logger;
invokeinterface jdk.internal.net.http.common.Logger.on:()Z
ifeq 28
27: aload 0
getfield jdk.internal.net.http.PlainHttpConnection.debug:Ljdk/internal/net/http/common/Logger;
ldc "Failed to close channel after unsuccessful connect"
invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;)V
end local 3 28: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 29 0 this Ljdk/internal/net/http/PlainHttpConnection;
0 29 1 exchange Ljdk/internal/net/http/Exchange<*>;
1 29 2 cf Ljava/util/concurrent/CompletableFuture<Ljava/lang/Void;>;
11 12 3 finished Z
14 20 3 finished Z
10 20 4 pa Ljava/security/PrivilegedExceptionAction<Ljava/lang/Boolean;>;
13 14 5 e Ljava/security/PrivilegedActionException;
22 28 3 throwable Ljava/lang/Throwable;
Exception table:
from to target type
10 11 12 Class java.security.PrivilegedActionException
1 20 21 Class java.lang.Throwable
23 24 25 Class java.lang.Exception
Signature: (Ljdk/internal/net/http/Exchange<*>;)Ljava/util/concurrent/CompletableFuture<Ljava/lang/Void;>;
MethodParameters:
Name Flags
exchange
public java.util.concurrent.CompletableFuture<java.lang.Void> finishConnect();
descriptor: ()Ljava/util/concurrent/CompletableFuture;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic jdk.internal.net.http.PlainHttpConnection.$assertionsDisabled:Z
ifne 1
aload 0
getfield jdk.internal.net.http.PlainHttpConnection.connected:Z
ifeq 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.PlainHttpConnection.debug:Ljdk/internal/net/http/common/Logger;
invokeinterface jdk.internal.net.http.common.Logger.on:()Z
ifeq 2
aload 0
getfield jdk.internal.net.http.PlainHttpConnection.debug:Ljdk/internal/net/http/common/Logger;
ldc "finishConnect, setting connected=true"
invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;)V
2: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield jdk.internal.net.http.PlainHttpConnection.connected:Z
3: aload 0
getfield jdk.internal.net.http.PlainHttpConnection.connectTimerEvent:Ljdk/internal/net/http/PlainHttpConnection$ConnectTimerEvent;
ifnull 5
4: aload 0
invokevirtual jdk.internal.net.http.PlainHttpConnection.client:()Ljdk/internal/net/http/HttpClientImpl;
aload 0
getfield jdk.internal.net.http.PlainHttpConnection.connectTimerEvent:Ljdk/internal/net/http/PlainHttpConnection$ConnectTimerEvent;
invokevirtual jdk.internal.net.http.HttpClientImpl.cancelTimer:(Ljdk/internal/net/http/TimeoutEvent;)V
5: StackMap locals:
StackMap stack:
aconst_null
invokestatic jdk.internal.net.http.common.MinimalFuture.completedFuture:(Ljava/lang/Object;)Ljdk/internal/net/http/common/MinimalFuture;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/internal/net/http/PlainHttpConnection;
Signature: ()Ljava/util/concurrent/CompletableFuture<Ljava/lang/Void;>;
java.nio.channels.SocketChannel channel();
descriptor: ()Ljava/nio/channels/SocketChannel;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.PlainHttpConnection.chan:Ljava/nio/channels/SocketChannel;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/PlainHttpConnection;
final jdk.internal.net.http.common.FlowTube getConnectionFlow();
descriptor: ()Ljdk/internal/net/http/common/FlowTube;
flags: (0x0010) ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.PlainHttpConnection.tube:Ljdk/internal/net/http/SocketTube;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/PlainHttpConnection;
void <init>(java.net.InetSocketAddress, jdk.internal.net.http.HttpClientImpl);
descriptor: (Ljava/net/InetSocketAddress;Ljdk/internal/net/http/HttpClientImpl;)V
flags: (0x0000)
Code:
stack=6, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokespecial jdk.internal.net.http.HttpConnection.<init>:(Ljava/net/InetSocketAddress;Ljdk/internal/net/http/HttpClientImpl;)V
1: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield jdk.internal.net.http.PlainHttpConnection.reading:Ljava/lang/Object;
2: aload 0
new jdk.internal.net.http.HttpConnection$PlainHttpPublisher
dup
aload 0
aload 0
getfield jdk.internal.net.http.PlainHttpConnection.reading:Ljava/lang/Object;
invokespecial jdk.internal.net.http.HttpConnection$PlainHttpPublisher.<init>:(Ljdk/internal/net/http/HttpConnection;Ljava/lang/Object;)V
putfield jdk.internal.net.http.PlainHttpConnection.writePublisher:Ljdk/internal/net/http/HttpConnection$PlainHttpPublisher;
3: aload 0
invokestatic java.nio.channels.SocketChannel.open:()Ljava/nio/channels/SocketChannel;
putfield jdk.internal.net.http.PlainHttpConnection.chan:Ljava/nio/channels/SocketChannel;
4: aload 0
getfield jdk.internal.net.http.PlainHttpConnection.chan:Ljava/nio/channels/SocketChannel;
iconst_0
invokevirtual java.nio.channels.SocketChannel.configureBlocking:(Z)Ljava/nio/channels/SelectableChannel;
pop
5: aload 0
aload 2
invokevirtual jdk.internal.net.http.HttpClientImpl.getReceiveBufferSize:()I
invokevirtual jdk.internal.net.http.PlainHttpConnection.trySetReceiveBufferSize:(I)V
6: aload 0
getfield jdk.internal.net.http.PlainHttpConnection.debug:Ljdk/internal/net/http/common/Logger;
invokeinterface jdk.internal.net.http.common.Logger.on:()Z
ifeq 9
7: aload 0
invokevirtual jdk.internal.net.http.PlainHttpConnection.getInitialBufferSize:()I
istore 3
start local 3 8: aload 0
getfield jdk.internal.net.http.PlainHttpConnection.debug:Ljdk/internal/net/http/common/Logger;
ldc "Initial receive buffer size is: %d"
iconst_1
anewarray java.lang.Object
dup
iconst_0
iload 3
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;[Ljava/lang/Object;)V
end local 3 9: StackMap locals: jdk.internal.net.http.PlainHttpConnection java.net.InetSocketAddress jdk.internal.net.http.HttpClientImpl
StackMap stack:
aload 0
getfield jdk.internal.net.http.PlainHttpConnection.chan:Ljava/nio/channels/SocketChannel;
getstatic java.net.StandardSocketOptions.TCP_NODELAY:Ljava/net/SocketOption;
iconst_1
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
invokevirtual java.nio.channels.SocketChannel.setOption:(Ljava/net/SocketOption;Ljava/lang/Object;)Ljava/nio/channels/SocketChannel;
pop
10: aload 0
new jdk.internal.net.http.SocketTube
dup
aload 0
invokevirtual jdk.internal.net.http.PlainHttpConnection.client:()Ljdk/internal/net/http/HttpClientImpl;
aload 0
getfield jdk.internal.net.http.PlainHttpConnection.chan:Ljava/nio/channels/SocketChannel;
invokedynamic get()Ljava/util/function/Supplier;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
jdk/internal/net/http/common/Utils.getBuffer()Ljava/nio/ByteBuffer; (6)
()Ljava/nio/ByteBuffer;
invokespecial jdk.internal.net.http.SocketTube.<init>:(Ljdk/internal/net/http/HttpClientImpl;Ljava/nio/channels/SocketChannel;Ljava/util/function/Supplier;)V
putfield jdk.internal.net.http.PlainHttpConnection.tube:Ljdk/internal/net/http/SocketTube;
11: goto 14
StackMap locals:
StackMap stack: java.io.IOException
12: astore 3
start local 3 13: new java.lang.InternalError
dup
aload 3
invokespecial java.lang.InternalError.<init>:(Ljava/lang/Throwable;)V
athrow
end local 3 14: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Ljdk/internal/net/http/PlainHttpConnection;
0 15 1 addr Ljava/net/InetSocketAddress;
0 15 2 client Ljdk/internal/net/http/HttpClientImpl;
8 9 3 bufsize I
13 14 3 e Ljava/io/IOException;
Exception table:
from to target type
3 11 12 Class java.io.IOException
MethodParameters:
Name Flags
addr
client
private int getInitialBufferSize();
descriptor: ()I
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.PlainHttpConnection.chan:Ljava/nio/channels/SocketChannel;
getstatic java.net.StandardSocketOptions.SO_RCVBUF:Ljava/net/SocketOption;
invokevirtual java.nio.channels.SocketChannel.getOption:(Ljava/net/SocketOption;)Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
1: ireturn
2: StackMap locals:
StackMap stack: java.io.IOException
pop
3: aload 0
getfield jdk.internal.net.http.PlainHttpConnection.debug:Ljdk/internal/net/http/common/Logger;
invokeinterface jdk.internal.net.http.common.Logger.on:()Z
ifeq 5
4: aload 0
getfield jdk.internal.net.http.PlainHttpConnection.debug:Ljdk/internal/net/http/common/Logger;
ldc "Failed to get initial receive buffer size on %s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield jdk.internal.net.http.PlainHttpConnection.chan:Ljava/nio/channels/SocketChannel;
aastore
invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;[Ljava/lang/Object;)V
5: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/internal/net/http/PlainHttpConnection;
Exception table:
from to target type
0 1 2 Class java.io.IOException
private void trySetReceiveBufferSize(int);
descriptor: (I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: iload 1
ifle 8
1: aload 0
getfield jdk.internal.net.http.PlainHttpConnection.chan:Ljava/nio/channels/SocketChannel;
getstatic java.net.StandardSocketOptions.SO_RCVBUF:Ljava/net/SocketOption;
iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokevirtual java.nio.channels.SocketChannel.setOption:(Ljava/net/SocketOption;Ljava/lang/Object;)Ljava/nio/channels/SocketChannel;
pop
2: goto 8
StackMap locals:
StackMap stack: java.io.IOException
3: pop
4: aload 0
getfield jdk.internal.net.http.PlainHttpConnection.debug:Ljdk/internal/net/http/common/Logger;
invokeinterface jdk.internal.net.http.common.Logger.on:()Z
ifeq 8
5: aload 0
getfield jdk.internal.net.http.PlainHttpConnection.debug:Ljdk/internal/net/http/common/Logger;
ldc "Failed to set receive buffer size to %d on %s"
iconst_2
anewarray java.lang.Object
dup
iconst_0
6: iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_1
aload 0
getfield jdk.internal.net.http.PlainHttpConnection.chan:Ljava/nio/channels/SocketChannel;
aastore
7: invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;[Ljava/lang/Object;)V
8: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/internal/net/http/PlainHttpConnection;
0 9 1 bufsize I
Exception table:
from to target type
0 2 3 Class java.io.IOException
MethodParameters:
Name Flags
bufsize
jdk.internal.net.http.HttpConnection$HttpPublisher publisher();
descriptor: ()Ljdk/internal/net/http/HttpConnection$HttpPublisher;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.PlainHttpConnection.writePublisher:Ljdk/internal/net/http/HttpConnection$PlainHttpPublisher;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/PlainHttpConnection;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "PlainHttpConnection: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokespecial jdk.internal.net.http.HttpConnection.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/PlainHttpConnection;
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
dup
astore 1
monitorenter
1: aload 0
getfield jdk.internal.net.http.PlainHttpConnection.closed:Z
ifeq 4
2: aload 1
monitorexit
3: return
4: StackMap locals: jdk.internal.net.http.PlainHttpConnection
StackMap stack:
aload 0
iconst_1
putfield jdk.internal.net.http.PlainHttpConnection.closed:Z
5: aload 1
monitorexit
6: goto 9
StackMap locals:
StackMap stack: java.lang.Throwable
7: aload 1
monitorexit
8: athrow
9: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
ldc "Closing: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual jdk.internal.net.http.PlainHttpConnection.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
iconst_0
anewarray java.lang.Object
invokestatic jdk.internal.net.http.common.Log.logTrace:(Ljava/lang/String;[Ljava/lang/Object;)V
10: aload 0
getfield jdk.internal.net.http.PlainHttpConnection.debug:Ljdk/internal/net/http/common/Logger;
invokeinterface jdk.internal.net.http.common.Logger.on:()Z
ifeq 12
11: aload 0
getfield jdk.internal.net.http.PlainHttpConnection.debug:Ljdk/internal/net/http/common/Logger;
new java.lang.StringBuilder
dup
ldc "Closing channel: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual jdk.internal.net.http.PlainHttpConnection.client:()Ljdk/internal/net/http/HttpClientImpl;
aload 0
getfield jdk.internal.net.http.PlainHttpConnection.chan:Ljava/nio/channels/SocketChannel;
invokevirtual jdk.internal.net.http.HttpClientImpl.debugInterestOps:(Ljava/nio/channels/SelectableChannel;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;)V
12: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.PlainHttpConnection.connectTimerEvent:Ljdk/internal/net/http/PlainHttpConnection$ConnectTimerEvent;
ifnull 14
13: aload 0
invokevirtual jdk.internal.net.http.PlainHttpConnection.client:()Ljdk/internal/net/http/HttpClientImpl;
aload 0
getfield jdk.internal.net.http.PlainHttpConnection.connectTimerEvent:Ljdk/internal/net/http/PlainHttpConnection$ConnectTimerEvent;
invokevirtual jdk.internal.net.http.HttpClientImpl.cancelTimer:(Ljdk/internal/net/http/TimeoutEvent;)V
14: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.PlainHttpConnection.chan:Ljava/nio/channels/SocketChannel;
invokevirtual java.nio.channels.SocketChannel.close:()V
15: aload 0
getfield jdk.internal.net.http.PlainHttpConnection.tube:Ljdk/internal/net/http/SocketTube;
invokevirtual jdk.internal.net.http.SocketTube.signalClosed:()V
16: goto 19
StackMap locals:
StackMap stack: java.io.IOException
17: astore 1
start local 1 18: new java.lang.StringBuilder
dup
ldc "Closing resulted in "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
iconst_0
anewarray java.lang.Object
invokestatic jdk.internal.net.http.common.Log.logTrace:(Ljava/lang/String;[Ljava/lang/Object;)V
end local 1 19: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Ljdk/internal/net/http/PlainHttpConnection;
18 19 1 e Ljava/io/IOException;
Exception table:
from to target type
1 3 7 any
4 6 7 any
7 8 7 any
9 16 17 Class java.io.IOException
jdk.internal.net.http.ConnectionPool$CacheKey cacheKey();
descriptor: ()Ljdk/internal/net/http/ConnectionPool$CacheKey;
flags: (0x0000)
Code:
stack=4, locals=1, args_size=1
start local 0 0: new jdk.internal.net.http.ConnectionPool$CacheKey
dup
aload 0
getfield jdk.internal.net.http.PlainHttpConnection.address:Ljava/net/InetSocketAddress;
aconst_null
invokespecial jdk.internal.net.http.ConnectionPool$CacheKey.<init>:(Ljava/net/InetSocketAddress;Ljava/net/InetSocketAddress;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/PlainHttpConnection;
synchronized boolean connected();
descriptor: ()Z
flags: (0x0020) ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.PlainHttpConnection.connected:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/PlainHttpConnection;
boolean isSecure();
descriptor: ()Z
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/PlainHttpConnection;
boolean isProxied();
descriptor: ()Z
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/PlainHttpConnection;
private java.lang.Boolean lambda$0();
descriptor: ()Ljava/lang/Boolean;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.PlainHttpConnection.chan:Ljava/nio/channels/SocketChannel;
aload 0
getfield jdk.internal.net.http.PlainHttpConnection.address:Ljava/net/InetSocketAddress;
invokestatic jdk.internal.net.http.common.Utils.resolveAddress:(Ljava/net/InetSocketAddress;)Ljava/net/InetSocketAddress;
invokevirtual java.nio.channels.SocketChannel.connect:(Ljava/net/SocketAddress;)Z
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/PlainHttpConnection;
Exceptions:
throws java.lang.Exception
}
SourceFile: "PlainHttpConnection.java"
NestMembers:
jdk.internal.net.http.PlainHttpConnection$ConnectEvent jdk.internal.net.http.PlainHttpConnection$ConnectTimerEvent
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
CacheKey = jdk.internal.net.http.ConnectionPool$CacheKey of jdk.internal.net.http.ConnectionPool
abstract HttpPublisher = jdk.internal.net.http.HttpConnection$HttpPublisher of jdk.internal.net.http.HttpConnection
final PlainHttpPublisher = jdk.internal.net.http.HttpConnection$PlainHttpPublisher of jdk.internal.net.http.HttpConnection
final ConnectEvent = jdk.internal.net.http.PlainHttpConnection$ConnectEvent of jdk.internal.net.http.PlainHttpConnection
final ConnectTimerEvent = jdk.internal.net.http.PlainHttpConnection$ConnectTimerEvent of jdk.internal.net.http.PlainHttpConnection