1864 lines
48 KiB
Smali
1864 lines
48 KiB
Smali
.class public final Lokhttp3/internal/connection/RealConnection;
|
|
.super Lokhttp3/internal/http2/Http2Connection$Listener;
|
|
.source "RealConnection.java"
|
|
|
|
# interfaces
|
|
.implements Lokhttp3/Connection;
|
|
|
|
|
|
# instance fields
|
|
.field public a:Z
|
|
|
|
.field public b:I
|
|
|
|
.field public c:I
|
|
|
|
.field public final d:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Ljava/lang/ref/Reference<",
|
|
"Lokhttp3/internal/connection/StreamAllocation;",
|
|
">;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public e:J
|
|
|
|
.field private final g:Lokhttp3/ConnectionPool;
|
|
|
|
.field private final h:Lokhttp3/Route;
|
|
|
|
.field private i:Ljava/net/Socket;
|
|
|
|
.field private j:Ljava/net/Socket;
|
|
|
|
.field private k:Lokhttp3/Handshake;
|
|
|
|
.field private l:Lokhttp3/Protocol;
|
|
|
|
.field private m:Lokhttp3/internal/http2/Http2Connection;
|
|
|
|
.field private n:Lokio/BufferedSource;
|
|
|
|
.field private o:Lokio/BufferedSink;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lokhttp3/ConnectionPool;Lokhttp3/Route;)V
|
|
.locals 2
|
|
|
|
.line 108
|
|
invoke-direct {p0}, Lokhttp3/internal/http2/Http2Connection$Listener;-><init>()V
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 100
|
|
iput v0, p0, Lokhttp3/internal/connection/RealConnection;->c:I
|
|
|
|
.line 103
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
iput-object v0, p0, Lokhttp3/internal/connection/RealConnection;->d:Ljava/util/List;
|
|
|
|
const-wide v0, 0x7fffffffffffffffL
|
|
|
|
.line 106
|
|
iput-wide v0, p0, Lokhttp3/internal/connection/RealConnection;->e:J
|
|
|
|
.line 109
|
|
iput-object p1, p0, Lokhttp3/internal/connection/RealConnection;->g:Lokhttp3/ConnectionPool;
|
|
|
|
.line 110
|
|
iput-object p2, p0, Lokhttp3/internal/connection/RealConnection;->h:Lokhttp3/Route;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private a(IILokhttp3/Request;Lokhttp3/HttpUrl;)Lokhttp3/Request;
|
|
.locals 7
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 315
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v1, "CONNECT "
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-static {p4, v1}, Lokhttp3/internal/Util;->a(Lokhttp3/HttpUrl;Z)Ljava/lang/String;
|
|
|
|
move-result-object p4
|
|
|
|
invoke-virtual {v0, p4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string p4, " HTTP/1.1"
|
|
|
|
invoke-virtual {v0, p4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p4
|
|
|
|
.line 317
|
|
:goto_0
|
|
new-instance v0, Lokhttp3/internal/http1/Http1Codec;
|
|
|
|
iget-object v1, p0, Lokhttp3/internal/connection/RealConnection;->n:Lokio/BufferedSource;
|
|
|
|
iget-object v2, p0, Lokhttp3/internal/connection/RealConnection;->o:Lokio/BufferedSink;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
invoke-direct {v0, v3, v3, v1, v2}, Lokhttp3/internal/http1/Http1Codec;-><init>(Lokhttp3/OkHttpClient;Lokhttp3/internal/connection/StreamAllocation;Lokio/BufferedSource;Lokio/BufferedSink;)V
|
|
|
|
.line 318
|
|
iget-object v1, p0, Lokhttp3/internal/connection/RealConnection;->n:Lokio/BufferedSource;
|
|
|
|
invoke-interface {v1}, Lokio/BufferedSource;->timeout()Lokio/Timeout;
|
|
|
|
move-result-object v1
|
|
|
|
int-to-long v4, p1
|
|
|
|
sget-object v2, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
|
|
|
|
invoke-virtual {v1, v4, v5, v2}, Lokio/Timeout;->timeout(JLjava/util/concurrent/TimeUnit;)Lokio/Timeout;
|
|
|
|
.line 319
|
|
iget-object v1, p0, Lokhttp3/internal/connection/RealConnection;->o:Lokio/BufferedSink;
|
|
|
|
invoke-interface {v1}, Lokio/BufferedSink;->timeout()Lokio/Timeout;
|
|
|
|
move-result-object v1
|
|
|
|
int-to-long v4, p2
|
|
|
|
sget-object v2, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
|
|
|
|
invoke-virtual {v1, v4, v5, v2}, Lokio/Timeout;->timeout(JLjava/util/concurrent/TimeUnit;)Lokio/Timeout;
|
|
|
|
.line 320
|
|
invoke-virtual {p3}, Lokhttp3/Request;->c()Lokhttp3/Headers;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1, p4}, Lokhttp3/internal/http1/Http1Codec;->a(Lokhttp3/Headers;Ljava/lang/String;)V
|
|
|
|
.line 321
|
|
invoke-virtual {v0}, Lokhttp3/internal/http1/Http1Codec;->b()V
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 322
|
|
invoke-virtual {v0, v1}, Lokhttp3/internal/http1/Http1Codec;->a(Z)Lokhttp3/Response$Builder;
|
|
|
|
move-result-object v1
|
|
|
|
.line 323
|
|
invoke-virtual {v1, p3}, Lokhttp3/Response$Builder;->a(Lokhttp3/Request;)Lokhttp3/Response$Builder;
|
|
|
|
move-result-object p3
|
|
|
|
.line 324
|
|
invoke-virtual {p3}, Lokhttp3/Response$Builder;->a()Lokhttp3/Response;
|
|
|
|
move-result-object p3
|
|
|
|
.line 327
|
|
invoke-static {p3}, Lokhttp3/internal/http/HttpHeaders;->a(Lokhttp3/Response;)J
|
|
|
|
move-result-wide v1
|
|
|
|
const-wide/16 v4, -0x1
|
|
|
|
cmp-long v6, v1, v4
|
|
|
|
if-nez v6, :cond_0
|
|
|
|
const-wide/16 v1, 0x0
|
|
|
|
.line 331
|
|
:cond_0
|
|
invoke-virtual {v0, v1, v2}, Lokhttp3/internal/http1/Http1Codec;->b(J)Lokio/Source;
|
|
|
|
move-result-object v0
|
|
|
|
const v1, 0x7fffffff
|
|
|
|
.line 332
|
|
sget-object v2, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
|
|
|
|
invoke-static {v0, v1, v2}, Lokhttp3/internal/Util;->b(Lokio/Source;ILjava/util/concurrent/TimeUnit;)Z
|
|
|
|
.line 333
|
|
invoke-interface {v0}, Lokio/Source;->close()V
|
|
|
|
.line 335
|
|
invoke-virtual {p3}, Lokhttp3/Response;->c()I
|
|
|
|
move-result v0
|
|
|
|
const/16 v1, 0xc8
|
|
|
|
if-eq v0, v1, :cond_4
|
|
|
|
const/16 v1, 0x197
|
|
|
|
if-ne v0, v1, :cond_3
|
|
|
|
.line 347
|
|
iget-object v0, p0, Lokhttp3/internal/connection/RealConnection;->h:Lokhttp3/Route;
|
|
|
|
invoke-virtual {v0}, Lokhttp3/Route;->a()Lokhttp3/Address;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lokhttp3/Address;->d()Lokhttp3/Authenticator;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lokhttp3/internal/connection/RealConnection;->h:Lokhttp3/Route;
|
|
|
|
invoke-interface {v0, v1, p3}, Lokhttp3/Authenticator;->a(Lokhttp3/Route;Lokhttp3/Response;)Lokhttp3/Request;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
const-string v1, "close"
|
|
|
|
const-string v2, "Connection"
|
|
|
|
.line 350
|
|
invoke-virtual {p3, v2}, Lokhttp3/Response;->a(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p3
|
|
|
|
invoke-virtual {v1, p3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
|
|
|
|
move-result p3
|
|
|
|
if-eqz p3, :cond_1
|
|
|
|
return-object v0
|
|
|
|
:cond_1
|
|
move-object p3, v0
|
|
|
|
goto/16 :goto_0
|
|
|
|
.line 348
|
|
:cond_2
|
|
new-instance p1, Ljava/io/IOException;
|
|
|
|
const-string p2, "Failed to authenticate with proxy"
|
|
|
|
invoke-direct {p1, p2}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
.line 356
|
|
:cond_3
|
|
new-instance p1, Ljava/io/IOException;
|
|
|
|
new-instance p2, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string p4, "Unexpected response code for CONNECT: "
|
|
|
|
invoke-virtual {p2, p4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 357
|
|
invoke-virtual {p3}, Lokhttp3/Response;->c()I
|
|
|
|
move-result p3
|
|
|
|
invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-direct {p1, p2}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
.line 341
|
|
:cond_4
|
|
iget-object p1, p0, Lokhttp3/internal/connection/RealConnection;->n:Lokio/BufferedSource;
|
|
|
|
invoke-interface {p1}, Lokio/BufferedSource;->buffer()Lokio/Buffer;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Lokio/Buffer;->exhausted()Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_5
|
|
|
|
iget-object p1, p0, Lokhttp3/internal/connection/RealConnection;->o:Lokio/BufferedSink;
|
|
|
|
invoke-interface {p1}, Lokio/BufferedSink;->buffer()Lokio/Buffer;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Lokio/Buffer;->exhausted()Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_5
|
|
|
|
return-object v3
|
|
|
|
.line 342
|
|
:cond_5
|
|
new-instance p1, Ljava/io/IOException;
|
|
|
|
const-string p2, "TLS tunnel buffered too many bytes!"
|
|
|
|
invoke-direct {p1, p2}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method private a(II)V
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 211
|
|
iget-object v0, p0, Lokhttp3/internal/connection/RealConnection;->h:Lokhttp3/Route;
|
|
|
|
invoke-virtual {v0}, Lokhttp3/Route;->b()Ljava/net/Proxy;
|
|
|
|
move-result-object v0
|
|
|
|
.line 212
|
|
iget-object v1, p0, Lokhttp3/internal/connection/RealConnection;->h:Lokhttp3/Route;
|
|
|
|
invoke-virtual {v1}, Lokhttp3/Route;->a()Lokhttp3/Address;
|
|
|
|
move-result-object v1
|
|
|
|
.line 214
|
|
invoke-virtual {v0}, Ljava/net/Proxy;->type()Ljava/net/Proxy$Type;
|
|
|
|
move-result-object v2
|
|
|
|
sget-object v3, Ljava/net/Proxy$Type;->DIRECT:Ljava/net/Proxy$Type;
|
|
|
|
if-eq v2, v3, :cond_1
|
|
|
|
invoke-virtual {v0}, Ljava/net/Proxy;->type()Ljava/net/Proxy$Type;
|
|
|
|
move-result-object v2
|
|
|
|
sget-object v3, Ljava/net/Proxy$Type;->HTTP:Ljava/net/Proxy$Type;
|
|
|
|
if-ne v2, v3, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 215
|
|
:cond_0
|
|
new-instance v1, Ljava/net/Socket;
|
|
|
|
invoke-direct {v1, v0}, Ljava/net/Socket;-><init>(Ljava/net/Proxy;)V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
invoke-virtual {v1}, Lokhttp3/Address;->c()Ljavax/net/SocketFactory;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljavax/net/SocketFactory;->createSocket()Ljava/net/Socket;
|
|
|
|
move-result-object v1
|
|
|
|
:goto_1
|
|
iput-object v1, p0, Lokhttp3/internal/connection/RealConnection;->i:Ljava/net/Socket;
|
|
|
|
.line 218
|
|
iget-object v0, p0, Lokhttp3/internal/connection/RealConnection;->i:Ljava/net/Socket;
|
|
|
|
invoke-virtual {v0, p2}, Ljava/net/Socket;->setSoTimeout(I)V
|
|
|
|
.line 220
|
|
:try_start_0
|
|
invoke-static {}, Lokhttp3/internal/platform/Platform;->b()Lokhttp3/internal/platform/Platform;
|
|
|
|
move-result-object p2
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/connection/RealConnection;->i:Ljava/net/Socket;
|
|
|
|
iget-object v1, p0, Lokhttp3/internal/connection/RealConnection;->h:Lokhttp3/Route;
|
|
|
|
invoke-virtual {v1}, Lokhttp3/Route;->c()Ljava/net/InetSocketAddress;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {p2, v0, v1, p1}, Lokhttp3/internal/platform/Platform;->a(Ljava/net/Socket;Ljava/net/InetSocketAddress;I)V
|
|
:try_end_0
|
|
.catch Ljava/net/ConnectException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.line 226
|
|
iget-object p1, p0, Lokhttp3/internal/connection/RealConnection;->i:Ljava/net/Socket;
|
|
|
|
invoke-static {p1}, Lokio/Okio;->source(Ljava/net/Socket;)Lokio/Source;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1}, Lokio/Okio;->buffer(Lokio/Source;)Lokio/BufferedSource;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lokhttp3/internal/connection/RealConnection;->n:Lokio/BufferedSource;
|
|
|
|
.line 227
|
|
iget-object p1, p0, Lokhttp3/internal/connection/RealConnection;->i:Ljava/net/Socket;
|
|
|
|
invoke-static {p1}, Lokio/Okio;->sink(Ljava/net/Socket;)Lokio/Sink;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1}, Lokio/Okio;->buffer(Lokio/Sink;)Lokio/BufferedSink;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lokhttp3/internal/connection/RealConnection;->o:Lokio/BufferedSink;
|
|
|
|
return-void
|
|
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
.line 222
|
|
new-instance p2, Ljava/net/ConnectException;
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v1, "Failed to connect to "
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-object v1, p0, Lokhttp3/internal/connection/RealConnection;->h:Lokhttp3/Route;
|
|
|
|
invoke-virtual {v1}, Lokhttp3/Route;->c()Ljava/net/InetSocketAddress;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {p2, v0}, Ljava/net/ConnectException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 223
|
|
invoke-virtual {p2, p1}, Ljava/net/ConnectException;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable;
|
|
|
|
.line 224
|
|
throw p2
|
|
.end method
|
|
|
|
.method private a(III)V
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 186
|
|
invoke-direct {p0}, Lokhttp3/internal/connection/RealConnection;->f()Lokhttp3/Request;
|
|
|
|
move-result-object v0
|
|
|
|
.line 187
|
|
invoke-virtual {v0}, Lokhttp3/Request;->a()Lokhttp3/HttpUrl;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
:goto_0
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
const/16 v3, 0x15
|
|
|
|
if-gt v2, v3, :cond_1
|
|
|
|
.line 195
|
|
invoke-direct {p0, p1, p2}, Lokhttp3/internal/connection/RealConnection;->a(II)V
|
|
|
|
.line 196
|
|
invoke-direct {p0, p2, p3, v0, v1}, Lokhttp3/internal/connection/RealConnection;->a(IILokhttp3/Request;Lokhttp3/HttpUrl;)Lokhttp3/Request;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 202
|
|
:cond_0
|
|
iget-object v3, p0, Lokhttp3/internal/connection/RealConnection;->i:Ljava/net/Socket;
|
|
|
|
invoke-static {v3}, Lokhttp3/internal/Util;->a(Ljava/net/Socket;)V
|
|
|
|
const/4 v3, 0x0
|
|
|
|
.line 203
|
|
iput-object v3, p0, Lokhttp3/internal/connection/RealConnection;->i:Ljava/net/Socket;
|
|
|
|
.line 204
|
|
iput-object v3, p0, Lokhttp3/internal/connection/RealConnection;->o:Lokio/BufferedSink;
|
|
|
|
.line 205
|
|
iput-object v3, p0, Lokhttp3/internal/connection/RealConnection;->n:Lokio/BufferedSource;
|
|
|
|
goto :goto_0
|
|
|
|
.line 192
|
|
:cond_1
|
|
new-instance p1, Ljava/net/ProtocolException;
|
|
|
|
new-instance p2, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string p3, "Too many tunnel connections attempted: "
|
|
|
|
invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-direct {p1, p2}, Ljava/net/ProtocolException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method private a(Lokhttp3/internal/connection/ConnectionSpecSelector;)V
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 231
|
|
iget-object v0, p0, Lokhttp3/internal/connection/RealConnection;->h:Lokhttp3/Route;
|
|
|
|
invoke-virtual {v0}, Lokhttp3/Route;->a()Lokhttp3/Address;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lokhttp3/Address;->i()Ljavax/net/ssl/SSLSocketFactory;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 232
|
|
sget-object p1, Lokhttp3/Protocol;->HTTP_1_1:Lokhttp3/Protocol;
|
|
|
|
iput-object p1, p0, Lokhttp3/internal/connection/RealConnection;->l:Lokhttp3/Protocol;
|
|
|
|
.line 233
|
|
iget-object p1, p0, Lokhttp3/internal/connection/RealConnection;->i:Ljava/net/Socket;
|
|
|
|
iput-object p1, p0, Lokhttp3/internal/connection/RealConnection;->j:Ljava/net/Socket;
|
|
|
|
return-void
|
|
|
|
.line 237
|
|
:cond_0
|
|
invoke-direct {p0, p1}, Lokhttp3/internal/connection/RealConnection;->b(Lokhttp3/internal/connection/ConnectionSpecSelector;)V
|
|
|
|
.line 239
|
|
iget-object p1, p0, Lokhttp3/internal/connection/RealConnection;->l:Lokhttp3/Protocol;
|
|
|
|
sget-object v0, Lokhttp3/Protocol;->HTTP_2:Lokhttp3/Protocol;
|
|
|
|
if-ne p1, v0, :cond_1
|
|
|
|
.line 240
|
|
iget-object p1, p0, Lokhttp3/internal/connection/RealConnection;->j:Ljava/net/Socket;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-virtual {p1, v0}, Ljava/net/Socket;->setSoTimeout(I)V
|
|
|
|
.line 241
|
|
new-instance p1, Lokhttp3/internal/http2/Http2Connection$Builder;
|
|
|
|
const/4 v0, 0x1
|
|
|
|
invoke-direct {p1, v0}, Lokhttp3/internal/http2/Http2Connection$Builder;-><init>(Z)V
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/connection/RealConnection;->j:Ljava/net/Socket;
|
|
|
|
iget-object v1, p0, Lokhttp3/internal/connection/RealConnection;->h:Lokhttp3/Route;
|
|
|
|
.line 242
|
|
invoke-virtual {v1}, Lokhttp3/Route;->a()Lokhttp3/Address;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Lokhttp3/Address;->a()Lokhttp3/HttpUrl;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Lokhttp3/HttpUrl;->g()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
iget-object v2, p0, Lokhttp3/internal/connection/RealConnection;->n:Lokio/BufferedSource;
|
|
|
|
iget-object v3, p0, Lokhttp3/internal/connection/RealConnection;->o:Lokio/BufferedSink;
|
|
|
|
invoke-virtual {p1, v0, v1, v2, v3}, Lokhttp3/internal/http2/Http2Connection$Builder;->a(Ljava/net/Socket;Ljava/lang/String;Lokio/BufferedSource;Lokio/BufferedSink;)Lokhttp3/internal/http2/Http2Connection$Builder;
|
|
|
|
move-result-object p1
|
|
|
|
.line 243
|
|
invoke-virtual {p1, p0}, Lokhttp3/internal/http2/Http2Connection$Builder;->a(Lokhttp3/internal/http2/Http2Connection$Listener;)Lokhttp3/internal/http2/Http2Connection$Builder;
|
|
|
|
move-result-object p1
|
|
|
|
.line 244
|
|
invoke-virtual {p1}, Lokhttp3/internal/http2/Http2Connection$Builder;->a()Lokhttp3/internal/http2/Http2Connection;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lokhttp3/internal/connection/RealConnection;->m:Lokhttp3/internal/http2/Http2Connection;
|
|
|
|
.line 245
|
|
iget-object p1, p0, Lokhttp3/internal/connection/RealConnection;->m:Lokhttp3/internal/http2/Http2Connection;
|
|
|
|
invoke-virtual {p1}, Lokhttp3/internal/http2/Http2Connection;->c()V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method private b(Lokhttp3/internal/connection/ConnectionSpecSelector;)V
|
|
.locals 7
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 250
|
|
iget-object v0, p0, Lokhttp3/internal/connection/RealConnection;->h:Lokhttp3/Route;
|
|
|
|
invoke-virtual {v0}, Lokhttp3/Route;->a()Lokhttp3/Address;
|
|
|
|
move-result-object v0
|
|
|
|
.line 251
|
|
invoke-virtual {v0}, Lokhttp3/Address;->i()Ljavax/net/ssl/SSLSocketFactory;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
.line 256
|
|
:try_start_0
|
|
iget-object v3, p0, Lokhttp3/internal/connection/RealConnection;->i:Ljava/net/Socket;
|
|
|
|
.line 257
|
|
invoke-virtual {v0}, Lokhttp3/Address;->a()Lokhttp3/HttpUrl;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual {v4}, Lokhttp3/HttpUrl;->g()Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual {v0}, Lokhttp3/Address;->a()Lokhttp3/HttpUrl;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-virtual {v5}, Lokhttp3/HttpUrl;->h()I
|
|
|
|
move-result v5
|
|
|
|
const/4 v6, 0x1
|
|
|
|
.line 256
|
|
invoke-virtual {v1, v3, v4, v5, v6}, Ljavax/net/ssl/SSLSocketFactory;->createSocket(Ljava/net/Socket;Ljava/lang/String;IZ)Ljava/net/Socket;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Ljavax/net/ssl/SSLSocket;
|
|
:try_end_0
|
|
.catch Ljava/lang/AssertionError; {:try_start_0 .. :try_end_0} :catch_1
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_1
|
|
|
|
.line 260
|
|
:try_start_1
|
|
invoke-virtual {p1, v1}, Lokhttp3/internal/connection/ConnectionSpecSelector;->a(Ljavax/net/ssl/SSLSocket;)Lokhttp3/ConnectionSpec;
|
|
|
|
move-result-object p1
|
|
|
|
.line 261
|
|
invoke-virtual {p1}, Lokhttp3/ConnectionSpec;->d()Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_0
|
|
|
|
.line 262
|
|
invoke-static {}, Lokhttp3/internal/platform/Platform;->b()Lokhttp3/internal/platform/Platform;
|
|
|
|
move-result-object v3
|
|
|
|
.line 263
|
|
invoke-virtual {v0}, Lokhttp3/Address;->a()Lokhttp3/HttpUrl;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual {v4}, Lokhttp3/HttpUrl;->g()Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual {v0}, Lokhttp3/Address;->e()Ljava/util/List;
|
|
|
|
move-result-object v5
|
|
|
|
.line 262
|
|
invoke-virtual {v3, v1, v4, v5}, Lokhttp3/internal/platform/Platform;->a(Ljavax/net/ssl/SSLSocket;Ljava/lang/String;Ljava/util/List;)V
|
|
|
|
.line 267
|
|
:cond_0
|
|
invoke-virtual {v1}, Ljavax/net/ssl/SSLSocket;->startHandshake()V
|
|
|
|
.line 268
|
|
invoke-virtual {v1}, Ljavax/net/ssl/SSLSocket;->getSession()Ljavax/net/ssl/SSLSession;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-static {v3}, Lokhttp3/Handshake;->a(Ljavax/net/ssl/SSLSession;)Lokhttp3/Handshake;
|
|
|
|
move-result-object v3
|
|
|
|
.line 271
|
|
invoke-virtual {v0}, Lokhttp3/Address;->j()Ljavax/net/ssl/HostnameVerifier;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual {v0}, Lokhttp3/Address;->a()Lokhttp3/HttpUrl;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-virtual {v5}, Lokhttp3/HttpUrl;->g()Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-virtual {v1}, Ljavax/net/ssl/SSLSocket;->getSession()Ljavax/net/ssl/SSLSession;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-interface {v4, v5, v6}, Ljavax/net/ssl/HostnameVerifier;->verify(Ljava/lang/String;Ljavax/net/ssl/SSLSession;)Z
|
|
|
|
move-result v4
|
|
|
|
if-eqz v4, :cond_4
|
|
|
|
.line 280
|
|
invoke-virtual {v0}, Lokhttp3/Address;->k()Lokhttp3/CertificatePinner;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual {v0}, Lokhttp3/Address;->a()Lokhttp3/HttpUrl;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lokhttp3/HttpUrl;->g()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
.line 281
|
|
invoke-virtual {v3}, Lokhttp3/Handshake;->c()Ljava/util/List;
|
|
|
|
move-result-object v5
|
|
|
|
.line 280
|
|
invoke-virtual {v4, v0, v5}, Lokhttp3/CertificatePinner;->a(Ljava/lang/String;Ljava/util/List;)V
|
|
|
|
.line 284
|
|
invoke-virtual {p1}, Lokhttp3/ConnectionSpec;->d()Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 285
|
|
invoke-static {}, Lokhttp3/internal/platform/Platform;->b()Lokhttp3/internal/platform/Platform;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1, v1}, Lokhttp3/internal/platform/Platform;->a(Ljavax/net/ssl/SSLSocket;)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
.line 287
|
|
:cond_1
|
|
iput-object v1, p0, Lokhttp3/internal/connection/RealConnection;->j:Ljava/net/Socket;
|
|
|
|
.line 288
|
|
iget-object p1, p0, Lokhttp3/internal/connection/RealConnection;->j:Ljava/net/Socket;
|
|
|
|
invoke-static {p1}, Lokio/Okio;->source(Ljava/net/Socket;)Lokio/Source;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1}, Lokio/Okio;->buffer(Lokio/Source;)Lokio/BufferedSource;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lokhttp3/internal/connection/RealConnection;->n:Lokio/BufferedSource;
|
|
|
|
.line 289
|
|
iget-object p1, p0, Lokhttp3/internal/connection/RealConnection;->j:Ljava/net/Socket;
|
|
|
|
invoke-static {p1}, Lokio/Okio;->sink(Ljava/net/Socket;)Lokio/Sink;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1}, Lokio/Okio;->buffer(Lokio/Sink;)Lokio/BufferedSink;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lokhttp3/internal/connection/RealConnection;->o:Lokio/BufferedSink;
|
|
|
|
.line 290
|
|
iput-object v3, p0, Lokhttp3/internal/connection/RealConnection;->k:Lokhttp3/Handshake;
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
.line 292
|
|
invoke-static {v2}, Lokhttp3/Protocol;->get(Ljava/lang/String;)Lokhttp3/Protocol;
|
|
|
|
move-result-object p1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
sget-object p1, Lokhttp3/Protocol;->HTTP_1_1:Lokhttp3/Protocol;
|
|
|
|
:goto_0
|
|
iput-object p1, p0, Lokhttp3/internal/connection/RealConnection;->l:Lokhttp3/Protocol;
|
|
:try_end_1
|
|
.catch Ljava/lang/AssertionError; {:try_start_1 .. :try_end_1} :catch_0
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
.line 300
|
|
invoke-static {}, Lokhttp3/internal/platform/Platform;->b()Lokhttp3/internal/platform/Platform;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1, v1}, Lokhttp3/internal/platform/Platform;->b(Ljavax/net/ssl/SSLSocket;)V
|
|
|
|
:cond_3
|
|
return-void
|
|
|
|
.line 272
|
|
:cond_4
|
|
:try_start_2
|
|
invoke-virtual {v3}, Lokhttp3/Handshake;->c()Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-interface {p1, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Ljava/security/cert/X509Certificate;
|
|
|
|
.line 273
|
|
new-instance v2, Ljavax/net/ssl/SSLPeerUnverifiedException;
|
|
|
|
new-instance v3, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v4, "Hostname "
|
|
|
|
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Lokhttp3/Address;->a()Lokhttp3/HttpUrl;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lokhttp3/HttpUrl;->g()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v0, " not verified:\n certificate: "
|
|
|
|
invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 274
|
|
invoke-static {p1}, Lokhttp3/CertificatePinner;->a(Ljava/security/cert/Certificate;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v0, "\n DN: "
|
|
|
|
invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 275
|
|
invoke-virtual {p1}, Ljava/security/cert/X509Certificate;->getSubjectDN()Ljava/security/Principal;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-interface {v0}, Ljava/security/Principal;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v0, "\n subjectAltNames: "
|
|
|
|
invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 276
|
|
invoke-static {p1}, Lokhttp3/internal/tls/OkHostnameVerifier;->a(Ljava/security/cert/X509Certificate;)Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {v2, p1}, Ljavax/net/ssl/SSLPeerUnverifiedException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v2
|
|
:try_end_2
|
|
.catch Ljava/lang/AssertionError; {:try_start_2 .. :try_end_2} :catch_0
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
goto :goto_2
|
|
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
move-object v2, v1
|
|
|
|
goto :goto_1
|
|
|
|
:catchall_1
|
|
move-exception p1
|
|
|
|
move-object v1, v2
|
|
|
|
goto :goto_2
|
|
|
|
:catch_1
|
|
move-exception p1
|
|
|
|
.line 296
|
|
:goto_1
|
|
:try_start_3
|
|
invoke-static {p1}, Lokhttp3/internal/Util;->a(Ljava/lang/AssertionError;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
new-instance v0, Ljava/io/IOException;
|
|
|
|
invoke-direct {v0, p1}, Ljava/io/IOException;-><init>(Ljava/lang/Throwable;)V
|
|
|
|
throw v0
|
|
|
|
.line 297
|
|
:cond_5
|
|
throw p1
|
|
:try_end_3
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_1
|
|
|
|
:goto_2
|
|
if-eqz v1, :cond_6
|
|
|
|
.line 300
|
|
invoke-static {}, Lokhttp3/internal/platform/Platform;->b()Lokhttp3/internal/platform/Platform;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, v1}, Lokhttp3/internal/platform/Platform;->b(Ljavax/net/ssl/SSLSocket;)V
|
|
|
|
.line 303
|
|
:cond_6
|
|
invoke-static {v1}, Lokhttp3/internal/Util;->a(Ljava/net/Socket;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method private f()Lokhttp3/Request;
|
|
.locals 4
|
|
|
|
.line 368
|
|
new-instance v0, Lokhttp3/Request$Builder;
|
|
|
|
invoke-direct {v0}, Lokhttp3/Request$Builder;-><init>()V
|
|
|
|
iget-object v1, p0, Lokhttp3/internal/connection/RealConnection;->h:Lokhttp3/Route;
|
|
|
|
.line 369
|
|
invoke-virtual {v1}, Lokhttp3/Route;->a()Lokhttp3/Address;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Lokhttp3/Address;->a()Lokhttp3/HttpUrl;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Lokhttp3/Request$Builder;->a(Lokhttp3/HttpUrl;)Lokhttp3/Request$Builder;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "Host"
|
|
|
|
iget-object v2, p0, Lokhttp3/internal/connection/RealConnection;->h:Lokhttp3/Route;
|
|
|
|
.line 370
|
|
invoke-virtual {v2}, Lokhttp3/Route;->a()Lokhttp3/Address;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2}, Lokhttp3/Address;->a()Lokhttp3/HttpUrl;
|
|
|
|
move-result-object v2
|
|
|
|
const/4 v3, 0x1
|
|
|
|
invoke-static {v2, v3}, Lokhttp3/internal/Util;->a(Lokhttp3/HttpUrl;Z)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v0, v1, v2}, Lokhttp3/Request$Builder;->a(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Request$Builder;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "Proxy-Connection"
|
|
|
|
const-string v2, "Keep-Alive"
|
|
|
|
.line 371
|
|
invoke-virtual {v0, v1, v2}, Lokhttp3/Request$Builder;->a(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Request$Builder;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "User-Agent"
|
|
|
|
.line 372
|
|
invoke-static {}, Lokhttp3/internal/Version;->a()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v0, v1, v2}, Lokhttp3/Request$Builder;->a(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Request$Builder;
|
|
|
|
move-result-object v0
|
|
|
|
.line 373
|
|
invoke-virtual {v0}, Lokhttp3/Request$Builder;->b()Lokhttp3/Request;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a()Lokhttp3/Route;
|
|
.locals 1
|
|
|
|
.line 404
|
|
iget-object v0, p0, Lokhttp3/internal/connection/RealConnection;->h:Lokhttp3/Route;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public a(Lokhttp3/OkHttpClient;Lokhttp3/internal/connection/StreamAllocation;)Lokhttp3/internal/http/HttpCodec;
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/net/SocketException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 385
|
|
iget-object v0, p0, Lokhttp3/internal/connection/RealConnection;->m:Lokhttp3/internal/http2/Http2Connection;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 386
|
|
new-instance v0, Lokhttp3/internal/http2/Http2Codec;
|
|
|
|
iget-object v1, p0, Lokhttp3/internal/connection/RealConnection;->m:Lokhttp3/internal/http2/Http2Connection;
|
|
|
|
invoke-direct {v0, p1, p2, v1}, Lokhttp3/internal/http2/Http2Codec;-><init>(Lokhttp3/OkHttpClient;Lokhttp3/internal/connection/StreamAllocation;Lokhttp3/internal/http2/Http2Connection;)V
|
|
|
|
return-object v0
|
|
|
|
.line 388
|
|
:cond_0
|
|
iget-object v0, p0, Lokhttp3/internal/connection/RealConnection;->j:Ljava/net/Socket;
|
|
|
|
invoke-virtual {p1}, Lokhttp3/OkHttpClient;->b()I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {v0, v1}, Ljava/net/Socket;->setSoTimeout(I)V
|
|
|
|
.line 389
|
|
iget-object v0, p0, Lokhttp3/internal/connection/RealConnection;->n:Lokio/BufferedSource;
|
|
|
|
invoke-interface {v0}, Lokio/BufferedSource;->timeout()Lokio/Timeout;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1}, Lokhttp3/OkHttpClient;->b()I
|
|
|
|
move-result v1
|
|
|
|
int-to-long v1, v1
|
|
|
|
sget-object v3, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
|
|
|
|
invoke-virtual {v0, v1, v2, v3}, Lokio/Timeout;->timeout(JLjava/util/concurrent/TimeUnit;)Lokio/Timeout;
|
|
|
|
.line 390
|
|
iget-object v0, p0, Lokhttp3/internal/connection/RealConnection;->o:Lokio/BufferedSink;
|
|
|
|
invoke-interface {v0}, Lokio/BufferedSink;->timeout()Lokio/Timeout;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1}, Lokhttp3/OkHttpClient;->c()I
|
|
|
|
move-result v1
|
|
|
|
int-to-long v1, v1
|
|
|
|
sget-object v3, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
|
|
|
|
invoke-virtual {v0, v1, v2, v3}, Lokio/Timeout;->timeout(JLjava/util/concurrent/TimeUnit;)Lokio/Timeout;
|
|
|
|
.line 391
|
|
new-instance v0, Lokhttp3/internal/http1/Http1Codec;
|
|
|
|
iget-object v1, p0, Lokhttp3/internal/connection/RealConnection;->n:Lokio/BufferedSource;
|
|
|
|
iget-object v2, p0, Lokhttp3/internal/connection/RealConnection;->o:Lokio/BufferedSink;
|
|
|
|
invoke-direct {v0, p1, p2, v1, v2}, Lokhttp3/internal/http1/Http1Codec;-><init>(Lokhttp3/OkHttpClient;Lokhttp3/internal/connection/StreamAllocation;Lokio/BufferedSource;Lokio/BufferedSink;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public a(Lokhttp3/internal/connection/StreamAllocation;)Lokhttp3/internal/ws/RealWebSocket$Streams;
|
|
.locals 7
|
|
|
|
.line 396
|
|
new-instance v6, Lokhttp3/internal/connection/RealConnection$1;
|
|
|
|
iget-object v3, p0, Lokhttp3/internal/connection/RealConnection;->n:Lokio/BufferedSource;
|
|
|
|
iget-object v4, p0, Lokhttp3/internal/connection/RealConnection;->o:Lokio/BufferedSink;
|
|
|
|
const/4 v2, 0x1
|
|
|
|
move-object v0, v6
|
|
|
|
move-object v1, p0
|
|
|
|
move-object v5, p1
|
|
|
|
invoke-direct/range {v0 .. v5}, Lokhttp3/internal/connection/RealConnection$1;-><init>(Lokhttp3/internal/connection/RealConnection;ZLokio/BufferedSource;Lokio/BufferedSink;Lokhttp3/internal/connection/StreamAllocation;)V
|
|
|
|
return-object v6
|
|
.end method
|
|
|
|
.method public a(IIIZ)V
|
|
.locals 5
|
|
|
|
.line 123
|
|
iget-object v0, p0, Lokhttp3/internal/connection/RealConnection;->l:Lokhttp3/Protocol;
|
|
|
|
if-nez v0, :cond_7
|
|
|
|
.line 126
|
|
iget-object v0, p0, Lokhttp3/internal/connection/RealConnection;->h:Lokhttp3/Route;
|
|
|
|
invoke-virtual {v0}, Lokhttp3/Route;->a()Lokhttp3/Address;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lokhttp3/Address;->f()Ljava/util/List;
|
|
|
|
move-result-object v0
|
|
|
|
.line 127
|
|
new-instance v1, Lokhttp3/internal/connection/ConnectionSpecSelector;
|
|
|
|
invoke-direct {v1, v0}, Lokhttp3/internal/connection/ConnectionSpecSelector;-><init>(Ljava/util/List;)V
|
|
|
|
.line 129
|
|
iget-object v2, p0, Lokhttp3/internal/connection/RealConnection;->h:Lokhttp3/Route;
|
|
|
|
invoke-virtual {v2}, Lokhttp3/Route;->a()Lokhttp3/Address;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2}, Lokhttp3/Address;->i()Ljavax/net/ssl/SSLSocketFactory;
|
|
|
|
move-result-object v2
|
|
|
|
if-nez v2, :cond_2
|
|
|
|
.line 130
|
|
sget-object v2, Lokhttp3/ConnectionSpec;->c:Lokhttp3/ConnectionSpec;
|
|
|
|
invoke-interface {v0, v2}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 134
|
|
iget-object v0, p0, Lokhttp3/internal/connection/RealConnection;->h:Lokhttp3/Route;
|
|
|
|
invoke-virtual {v0}, Lokhttp3/Route;->a()Lokhttp3/Address;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lokhttp3/Address;->a()Lokhttp3/HttpUrl;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lokhttp3/HttpUrl;->g()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
.line 135
|
|
invoke-static {}, Lokhttp3/internal/platform/Platform;->b()Lokhttp3/internal/platform/Platform;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2, v0}, Lokhttp3/internal/platform/Platform;->b(Ljava/lang/String;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 136
|
|
:cond_0
|
|
new-instance p1, Lokhttp3/internal/connection/RouteException;
|
|
|
|
new-instance p2, Ljava/net/UnknownServiceException;
|
|
|
|
new-instance p3, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {p3}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string p4, "CLEARTEXT communication to "
|
|
|
|
invoke-virtual {p3, p4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string p4, " not permitted by network security policy"
|
|
|
|
invoke-virtual {p3, p4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p3
|
|
|
|
invoke-direct {p2, p3}, Ljava/net/UnknownServiceException;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-direct {p1, p2}, Lokhttp3/internal/connection/RouteException;-><init>(Ljava/io/IOException;)V
|
|
|
|
throw p1
|
|
|
|
.line 131
|
|
:cond_1
|
|
new-instance p1, Lokhttp3/internal/connection/RouteException;
|
|
|
|
new-instance p2, Ljava/net/UnknownServiceException;
|
|
|
|
const-string p3, "CLEARTEXT communication not enabled for client"
|
|
|
|
invoke-direct {p2, p3}, Ljava/net/UnknownServiceException;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-direct {p1, p2}, Lokhttp3/internal/connection/RouteException;-><init>(Ljava/io/IOException;)V
|
|
|
|
throw p1
|
|
|
|
:cond_2
|
|
:goto_0
|
|
const/4 v0, 0x0
|
|
|
|
move-object v2, v0
|
|
|
|
.line 143
|
|
:goto_1
|
|
:try_start_0
|
|
iget-object v3, p0, Lokhttp3/internal/connection/RealConnection;->h:Lokhttp3/Route;
|
|
|
|
invoke-virtual {v3}, Lokhttp3/Route;->d()Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_3
|
|
|
|
.line 144
|
|
invoke-direct {p0, p1, p2, p3}, Lokhttp3/internal/connection/RealConnection;->a(III)V
|
|
|
|
goto :goto_2
|
|
|
|
.line 146
|
|
:cond_3
|
|
invoke-direct {p0, p1, p2}, Lokhttp3/internal/connection/RealConnection;->a(II)V
|
|
|
|
.line 148
|
|
:goto_2
|
|
invoke-direct {p0, v1}, Lokhttp3/internal/connection/RealConnection;->a(Lokhttp3/internal/connection/ConnectionSpecSelector;)V
|
|
:try_end_0
|
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.line 173
|
|
iget-object p1, p0, Lokhttp3/internal/connection/RealConnection;->m:Lokhttp3/internal/http2/Http2Connection;
|
|
|
|
if-eqz p1, :cond_4
|
|
|
|
.line 174
|
|
iget-object p1, p0, Lokhttp3/internal/connection/RealConnection;->g:Lokhttp3/ConnectionPool;
|
|
|
|
monitor-enter p1
|
|
|
|
.line 175
|
|
:try_start_1
|
|
iget-object p2, p0, Lokhttp3/internal/connection/RealConnection;->m:Lokhttp3/internal/http2/Http2Connection;
|
|
|
|
invoke-virtual {p2}, Lokhttp3/internal/http2/Http2Connection;->a()I
|
|
|
|
move-result p2
|
|
|
|
iput p2, p0, Lokhttp3/internal/connection/RealConnection;->c:I
|
|
|
|
.line 176
|
|
monitor-exit p1
|
|
|
|
goto :goto_3
|
|
|
|
:catchall_0
|
|
move-exception p2
|
|
|
|
monitor-exit p1
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
throw p2
|
|
|
|
:cond_4
|
|
:goto_3
|
|
return-void
|
|
|
|
:catch_0
|
|
move-exception v3
|
|
|
|
.line 151
|
|
iget-object v4, p0, Lokhttp3/internal/connection/RealConnection;->j:Ljava/net/Socket;
|
|
|
|
invoke-static {v4}, Lokhttp3/internal/Util;->a(Ljava/net/Socket;)V
|
|
|
|
.line 152
|
|
iget-object v4, p0, Lokhttp3/internal/connection/RealConnection;->i:Ljava/net/Socket;
|
|
|
|
invoke-static {v4}, Lokhttp3/internal/Util;->a(Ljava/net/Socket;)V
|
|
|
|
.line 153
|
|
iput-object v0, p0, Lokhttp3/internal/connection/RealConnection;->j:Ljava/net/Socket;
|
|
|
|
.line 154
|
|
iput-object v0, p0, Lokhttp3/internal/connection/RealConnection;->i:Ljava/net/Socket;
|
|
|
|
.line 155
|
|
iput-object v0, p0, Lokhttp3/internal/connection/RealConnection;->n:Lokio/BufferedSource;
|
|
|
|
.line 156
|
|
iput-object v0, p0, Lokhttp3/internal/connection/RealConnection;->o:Lokio/BufferedSink;
|
|
|
|
.line 157
|
|
iput-object v0, p0, Lokhttp3/internal/connection/RealConnection;->k:Lokhttp3/Handshake;
|
|
|
|
.line 158
|
|
iput-object v0, p0, Lokhttp3/internal/connection/RealConnection;->l:Lokhttp3/Protocol;
|
|
|
|
.line 159
|
|
iput-object v0, p0, Lokhttp3/internal/connection/RealConnection;->m:Lokhttp3/internal/http2/Http2Connection;
|
|
|
|
if-nez v2, :cond_5
|
|
|
|
.line 162
|
|
new-instance v2, Lokhttp3/internal/connection/RouteException;
|
|
|
|
invoke-direct {v2, v3}, Lokhttp3/internal/connection/RouteException;-><init>(Ljava/io/IOException;)V
|
|
|
|
goto :goto_4
|
|
|
|
.line 164
|
|
:cond_5
|
|
invoke-virtual {v2, v3}, Lokhttp3/internal/connection/RouteException;->addConnectException(Ljava/io/IOException;)V
|
|
|
|
:goto_4
|
|
if-eqz p4, :cond_6
|
|
|
|
.line 167
|
|
invoke-virtual {v1, v3}, Lokhttp3/internal/connection/ConnectionSpecSelector;->a(Ljava/io/IOException;)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_6
|
|
|
|
goto :goto_1
|
|
|
|
.line 168
|
|
:cond_6
|
|
throw v2
|
|
|
|
.line 123
|
|
:cond_7
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
const-string p2, "already connected"
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public a(Lokhttp3/internal/http2/Http2Connection;)V
|
|
.locals 1
|
|
|
|
.line 455
|
|
iget-object v0, p0, Lokhttp3/internal/connection/RealConnection;->g:Lokhttp3/ConnectionPool;
|
|
|
|
monitor-enter v0
|
|
|
|
.line 456
|
|
:try_start_0
|
|
invoke-virtual {p1}, Lokhttp3/internal/http2/Http2Connection;->a()I
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Lokhttp3/internal/connection/RealConnection;->c:I
|
|
|
|
.line 457
|
|
monitor-exit v0
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
monitor-exit v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public a(Lokhttp3/internal/http2/Http2Stream;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 450
|
|
sget-object v0, Lokhttp3/internal/http2/ErrorCode;->REFUSED_STREAM:Lokhttp3/internal/http2/ErrorCode;
|
|
|
|
invoke-virtual {p1, v0}, Lokhttp3/internal/http2/Http2Stream;->a(Lokhttp3/internal/http2/ErrorCode;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Lokhttp3/Address;)Z
|
|
.locals 2
|
|
|
|
.line 378
|
|
iget-object v0, p0, Lokhttp3/internal/connection/RealConnection;->d:Ljava/util/List;
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->size()I
|
|
|
|
move-result v0
|
|
|
|
iget v1, p0, Lokhttp3/internal/connection/RealConnection;->c:I
|
|
|
|
if-ge v0, v1, :cond_0
|
|
|
|
.line 379
|
|
invoke-virtual {p0}, Lokhttp3/internal/connection/RealConnection;->a()Lokhttp3/Route;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lokhttp3/Route;->a()Lokhttp3/Address;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1, v0}, Lokhttp3/Address;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
iget-boolean p1, p0, Lokhttp3/internal/connection/RealConnection;->a:Z
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
:goto_0
|
|
return p1
|
|
.end method
|
|
|
|
.method public a(Z)Z
|
|
.locals 4
|
|
|
|
.line 418
|
|
iget-object v0, p0, Lokhttp3/internal/connection/RealConnection;->j:Ljava/net/Socket;
|
|
|
|
invoke-virtual {v0}, Ljava/net/Socket;->isClosed()Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-nez v0, :cond_4
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/connection/RealConnection;->j:Ljava/net/Socket;
|
|
|
|
invoke-virtual {v0}, Ljava/net/Socket;->isInputShutdown()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_4
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/connection/RealConnection;->j:Ljava/net/Socket;
|
|
|
|
invoke-virtual {v0}, Ljava/net/Socket;->isOutputShutdown()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 422
|
|
:cond_0
|
|
iget-object v0, p0, Lokhttp3/internal/connection/RealConnection;->m:Lokhttp3/internal/http2/Http2Connection;
|
|
|
|
const/4 v2, 0x1
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 423
|
|
iget-object p1, p0, Lokhttp3/internal/connection/RealConnection;->m:Lokhttp3/internal/http2/Http2Connection;
|
|
|
|
invoke-virtual {p1}, Lokhttp3/internal/http2/Http2Connection;->d()Z
|
|
|
|
move-result p1
|
|
|
|
xor-int/2addr p1, v2
|
|
|
|
return p1
|
|
|
|
:cond_1
|
|
if-eqz p1, :cond_3
|
|
|
|
.line 428
|
|
:try_start_0
|
|
iget-object p1, p0, Lokhttp3/internal/connection/RealConnection;->j:Ljava/net/Socket;
|
|
|
|
invoke-virtual {p1}, Ljava/net/Socket;->getSoTimeout()I
|
|
|
|
move-result p1
|
|
:try_end_0
|
|
.catch Ljava/net/SocketTimeoutException; {:try_start_0 .. :try_end_0} :catch_1
|
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.line 430
|
|
:try_start_1
|
|
iget-object v0, p0, Lokhttp3/internal/connection/RealConnection;->j:Ljava/net/Socket;
|
|
|
|
invoke-virtual {v0, v2}, Ljava/net/Socket;->setSoTimeout(I)V
|
|
|
|
.line 431
|
|
iget-object v0, p0, Lokhttp3/internal/connection/RealConnection;->n:Lokio/BufferedSource;
|
|
|
|
invoke-interface {v0}, Lokio/BufferedSource;->exhausted()Z
|
|
|
|
move-result v0
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 436
|
|
:try_start_2
|
|
iget-object v0, p0, Lokhttp3/internal/connection/RealConnection;->j:Ljava/net/Socket;
|
|
|
|
invoke-virtual {v0, p1}, Ljava/net/Socket;->setSoTimeout(I)V
|
|
|
|
return v1
|
|
|
|
:cond_2
|
|
iget-object v0, p0, Lokhttp3/internal/connection/RealConnection;->j:Ljava/net/Socket;
|
|
|
|
invoke-virtual {v0, p1}, Ljava/net/Socket;->setSoTimeout(I)V
|
|
|
|
return v2
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
iget-object v3, p0, Lokhttp3/internal/connection/RealConnection;->j:Ljava/net/Socket;
|
|
|
|
invoke-virtual {v3, p1}, Ljava/net/Socket;->setSoTimeout(I)V
|
|
|
|
throw v0
|
|
:try_end_2
|
|
.catch Ljava/net/SocketTimeoutException; {:try_start_2 .. :try_end_2} :catch_1
|
|
.catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0
|
|
|
|
:catch_0
|
|
return v1
|
|
|
|
:catch_1
|
|
:cond_3
|
|
return v2
|
|
|
|
:cond_4
|
|
:goto_0
|
|
return v1
|
|
.end method
|
|
|
|
.method public b()Lokhttp3/Handshake;
|
|
.locals 1
|
|
|
|
.line 461
|
|
iget-object v0, p0, Lokhttp3/internal/connection/RealConnection;->k:Lokhttp3/Handshake;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public c()V
|
|
.locals 1
|
|
|
|
.line 409
|
|
iget-object v0, p0, Lokhttp3/internal/connection/RealConnection;->i:Ljava/net/Socket;
|
|
|
|
invoke-static {v0}, Lokhttp3/internal/Util;->a(Ljava/net/Socket;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public d()Ljava/net/Socket;
|
|
.locals 1
|
|
|
|
.line 413
|
|
iget-object v0, p0, Lokhttp3/internal/connection/RealConnection;->j:Ljava/net/Socket;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public e()Z
|
|
.locals 1
|
|
|
|
.line 469
|
|
iget-object v0, p0, Lokhttp3/internal/connection/RealConnection;->m:Lokhttp3/internal/http2/Http2Connection;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
.locals 2
|
|
|
|
.line 477
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v1, "Connection{"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-object v1, p0, Lokhttp3/internal/connection/RealConnection;->h:Lokhttp3/Route;
|
|
|
|
.line 478
|
|
invoke-virtual {v1}, Lokhttp3/Route;->a()Lokhttp3/Address;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Lokhttp3/Address;->a()Lokhttp3/HttpUrl;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Lokhttp3/HttpUrl;->g()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, ":"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-object v1, p0, Lokhttp3/internal/connection/RealConnection;->h:Lokhttp3/Route;
|
|
|
|
invoke-virtual {v1}, Lokhttp3/Route;->a()Lokhttp3/Address;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Lokhttp3/Address;->a()Lokhttp3/HttpUrl;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Lokhttp3/HttpUrl;->h()I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, ", proxy="
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-object v1, p0, Lokhttp3/internal/connection/RealConnection;->h:Lokhttp3/Route;
|
|
|
|
.line 480
|
|
invoke-virtual {v1}, Lokhttp3/Route;->b()Ljava/net/Proxy;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, " hostAddress="
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-object v1, p0, Lokhttp3/internal/connection/RealConnection;->h:Lokhttp3/Route;
|
|
|
|
.line 482
|
|
invoke-virtual {v1}, Lokhttp3/Route;->c()Ljava/net/InetSocketAddress;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, " cipherSuite="
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-object v1, p0, Lokhttp3/internal/connection/RealConnection;->k:Lokhttp3/Handshake;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
iget-object v1, p0, Lokhttp3/internal/connection/RealConnection;->k:Lokhttp3/Handshake;
|
|
|
|
.line 484
|
|
invoke-virtual {v1}, Lokhttp3/Handshake;->b()Lokhttp3/CipherSuite;
|
|
|
|
move-result-object v1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const-string v1, "none"
|
|
|
|
:goto_0
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, " protocol="
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-object v1, p0, Lokhttp3/internal/connection/RealConnection;->l:Lokhttp3/Protocol;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
const/16 v1, 0x7d
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|