Rabbit-R1/original r1/smali/smali_classes3/okhttp3/internal/connection/RealConnection.smali
2024-05-21 17:08:36 -04:00

3663 lines
102 KiB
Smali

.class public final Lokhttp3/internal/connection/RealConnection;
.super Lokhttp3/internal/http2/Http2Connection$Listener;
.source "RealConnection.kt"
# interfaces
.implements Lokhttp3/Connection;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lokhttp3/internal/connection/RealConnection$Companion;
}
.end annotation
.annotation system Ldalvik/annotation/SourceDebugExtension;
value = "SMAP\nRealConnection.kt\nKotlin\n*S Kotlin\n*F\n+ 1 RealConnection.kt\nokhttp3/internal/connection/RealConnection\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 3 Util.kt\nokhttp3/internal/Util\n+ 4 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,765:1\n1#2:766\n601#3,4:767\n601#3,4:774\n608#3,4:778\n1691#4,3:771\n*E\n*S KotlinDebug\n*F\n+ 1 RealConnection.kt\nokhttp3/internal/connection/RealConnection\n*L\n529#1,4:767\n582#1,4:774\n648#1,4:778\n574#1,3:771\n*E\n"
.end annotation
.annotation runtime Lkotlin/Metadata;
bv = {
0x1,
0x0,
0x3
}
d1 = {
"\u0000\u00ec\u0001\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0010\u0008\n\u0000\n\u0002\u0010!\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0005\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\t\n\u0002\u0008\u0005\n\u0002\u0010\u000b\n\u0002\u0008\u0008\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0007\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0010\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0007\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0004\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0007\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010 \n\u0002\u0008\u0004\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0006\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0005\n\u0002\u0010\u000e\n\u0002\u0008\u0005\u0018\u0000 {2\u00020\u00012\u00020\u0002:\u0001{B\u0015\u0012\u0006\u0010\u0003\u001a\u00020\u0004\u0012\u0006\u0010\u0005\u001a\u00020\u0006\u00a2\u0006\u0002\u0010\u0007J\u0006\u00105\u001a\u000206J\u0018\u00107\u001a\u00020\u001d2\u0006\u00108\u001a\u0002092\u0006\u0010\u0012\u001a\u00020\u0013H\u0002J>\u0010:\u001a\u0002062\u0006\u0010;\u001a\u00020\t2\u0006\u0010<\u001a\u00020\t2\u0006\u0010=\u001a\u00020\t2\u0006\u0010>\u001a\u00020\t2\u0006\u0010?\u001a\u00020\u001d2\u0006\u0010@\u001a\u00020A2\u0006\u0010B\u001a\u00020CJ%\u0010D\u001a\u0002062\u0006\u0010E\u001a\u00020F2\u0006\u0010G\u001a\u00020\u00062\u0006\u0010H\u001a\u00020IH\u0000\u00a2\u0006\u0002\u0008JJ(\u0010K\u001a\u0002062\u0006\u0010;\u001a\u00020\t2\u0006\u0010<\u001a\u00020\t2\u0006\u0010@\u001a\u00020A2\u0006\u0010B\u001a\u00020CH\u0002J\u0010\u0010L\u001a\u0002062\u0006\u0010M\u001a\u00020NH\u0002J0\u0010O\u001a\u0002062\u0006\u0010;\u001a\u00020\t2\u0006\u0010<\u001a\u00020\t2\u0006\u0010=\u001a\u00020\t2\u0006\u0010@\u001a\u00020A2\u0006\u0010B\u001a\u00020CH\u0002J*\u0010P\u001a\u0004\u0018\u00010Q2\u0006\u0010<\u001a\u00020\t2\u0006\u0010=\u001a\u00020\t2\u0006\u0010R\u001a\u00020Q2\u0006\u00108\u001a\u000209H\u0002J\u0008\u0010S\u001a\u00020QH\u0002J(\u0010T\u001a\u0002062\u0006\u0010M\u001a\u00020N2\u0006\u0010>\u001a\u00020\t2\u0006\u0010@\u001a\u00020A2\u0006\u0010B\u001a\u00020CH\u0002J\n\u0010\u0012\u001a\u0004\u0018\u00010\u0013H\u0016J\r\u0010U\u001a\u000206H\u0000\u00a2\u0006\u0002\u0008VJ%\u0010W\u001a\u00020\u001d2\u0006\u0010X\u001a\u00020Y2\u000e\u0010Z\u001a\n\u0012\u0004\u0012\u00020\u0006\u0018\u00010[H\u0000\u00a2\u0006\u0002\u0008\\J\u000e\u0010]\u001a\u00020\u001d2\u0006\u0010^\u001a\u00020\u001dJ\u001d\u0010_\u001a\u00020`2\u0006\u0010E\u001a\u00020F2\u0006\u0010a\u001a\u00020bH\u0000\u00a2\u0006\u0002\u0008cJ\u0015\u0010d\u001a\u00020e2\u0006\u0010f\u001a\u00020gH\u0000\u00a2\u0006\u0002\u0008hJ\r\u0010 \u001a\u000206H\u0000\u00a2\u0006\u0002\u0008iJ\r\u0010!\u001a\u000206H\u0000\u00a2\u0006\u0002\u0008jJ\u0018\u0010k\u001a\u0002062\u0006\u0010l\u001a\u00020\u00152\u0006\u0010m\u001a\u00020nH\u0016J\u0010\u0010o\u001a\u0002062\u0006\u0010p\u001a\u00020qH\u0016J\u0008\u0010%\u001a\u00020&H\u0016J\u0008\u0010\u0005\u001a\u00020\u0006H\u0016J\u0016\u0010r\u001a\u00020\u001d2\u000c\u0010s\u001a\u0008\u0012\u0004\u0012\u00020\u00060[H\u0002J\u0008\u00101\u001a\u00020(H\u0016J\u0010\u0010t\u001a\u0002062\u0006\u0010>\u001a\u00020\tH\u0002J\u0010\u0010u\u001a\u00020\u001d2\u0006\u00108\u001a\u000209H\u0002J\u0008\u0010v\u001a\u00020wH\u0016J\u001f\u0010x\u001a\u0002062\u0006\u0010@\u001a\u00020\r2\u0008\u0010y\u001a\u0004\u0018\u00010IH\u0000\u00a2\u0006\u0002\u0008zR\u000e\u0010\u0008\u001a\u00020\tX\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u001d\u0010\n\u001a\u000e\u0012\n\u0012\u0008\u0012\u0004\u0012\u00020\r0\u000c0\u000b\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u000e\u0010\u000fR\u0011\u0010\u0003\u001a\u00020\u0004\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u0010\u0010\u0011R\u0010\u0010\u0012\u001a\u0004\u0018\u00010\u0013X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u0010\u0010\u0014\u001a\u0004\u0018\u00010\u0015X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u001a\u0010\u0016\u001a\u00020\u0017X\u0080\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008\u0018\u0010\u0019\"\u0004\u0008\u001a\u0010\u001bR\u0014\u0010\u001c\u001a\u00020\u001d8@X\u0080\u0004\u00a2\u0006\u0006\u001a\u0004\u0008\u001e\u0010\u001fR\u000e\u0010 \u001a\u00020\u001dX\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u001a\u0010!\u001a\u00020\u001dX\u0086\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008\"\u0010\u001f\"\u0004\u0008#\u0010$R\u0010\u0010%\u001a\u0004\u0018\u00010&X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u0010\u0010\'\u001a\u0004\u0018\u00010(X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u000e\u0010)\u001a\u00020\tX\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0005\u001a\u00020\u0006X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u001a\u0010*\u001a\u00020\tX\u0080\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008+\u0010,\"\u0004\u0008-\u0010.R\u0010\u0010/\u001a\u0004\u0018\u000100X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u0010\u00101\u001a\u0004\u0018\u00010(X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u0010\u00102\u001a\u0004\u0018\u000103X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u000e\u00104\u001a\u00020\tX\u0082\u000e\u00a2\u0006\u0002\n\u0000\u00a8\u0006|"
}
d2 = {
"Lokhttp3/internal/connection/RealConnection;",
"Lokhttp3/internal/http2/Http2Connection$Listener;",
"Lokhttp3/Connection;",
"connectionPool",
"Lokhttp3/internal/connection/RealConnectionPool;",
"route",
"Lokhttp3/Route;",
"(Lokhttp3/internal/connection/RealConnectionPool;Lokhttp3/Route;)V",
"allocationLimit",
"",
"calls",
"",
"Ljava/lang/ref/Reference;",
"Lokhttp3/internal/connection/RealCall;",
"getCalls",
"()Ljava/util/List;",
"getConnectionPool",
"()Lokhttp3/internal/connection/RealConnectionPool;",
"handshake",
"Lokhttp3/Handshake;",
"http2Connection",
"Lokhttp3/internal/http2/Http2Connection;",
"idleAtNs",
"",
"getIdleAtNs$okhttp",
"()J",
"setIdleAtNs$okhttp",
"(J)V",
"isMultiplexed",
"",
"isMultiplexed$okhttp",
"()Z",
"noCoalescedConnections",
"noNewExchanges",
"getNoNewExchanges",
"setNoNewExchanges",
"(Z)V",
"protocol",
"Lokhttp3/Protocol;",
"rawSocket",
"Ljava/net/Socket;",
"refusedStreamCount",
"routeFailureCount",
"getRouteFailureCount$okhttp",
"()I",
"setRouteFailureCount$okhttp",
"(I)V",
"sink",
"Lokio/BufferedSink;",
"socket",
"source",
"Lokio/BufferedSource;",
"successCount",
"cancel",
"",
"certificateSupportHost",
"url",
"Lokhttp3/HttpUrl;",
"connect",
"connectTimeout",
"readTimeout",
"writeTimeout",
"pingIntervalMillis",
"connectionRetryEnabled",
"call",
"Lokhttp3/Call;",
"eventListener",
"Lokhttp3/EventListener;",
"connectFailed",
"client",
"Lokhttp3/OkHttpClient;",
"failedRoute",
"failure",
"Ljava/io/IOException;",
"connectFailed$okhttp",
"connectSocket",
"connectTls",
"connectionSpecSelector",
"Lokhttp3/internal/connection/ConnectionSpecSelector;",
"connectTunnel",
"createTunnel",
"Lokhttp3/Request;",
"tunnelRequest",
"createTunnelRequest",
"establishProtocol",
"incrementSuccessCount",
"incrementSuccessCount$okhttp",
"isEligible",
"address",
"Lokhttp3/Address;",
"routes",
"",
"isEligible$okhttp",
"isHealthy",
"doExtensiveChecks",
"newCodec",
"Lokhttp3/internal/http/ExchangeCodec;",
"chain",
"Lokhttp3/internal/http/RealInterceptorChain;",
"newCodec$okhttp",
"newWebSocketStreams",
"Lokhttp3/internal/ws/RealWebSocket$Streams;",
"exchange",
"Lokhttp3/internal/connection/Exchange;",
"newWebSocketStreams$okhttp",
"noCoalescedConnections$okhttp",
"noNewExchanges$okhttp",
"onSettings",
"connection",
"settings",
"Lokhttp3/internal/http2/Settings;",
"onStream",
"stream",
"Lokhttp3/internal/http2/Http2Stream;",
"routeMatchesAny",
"candidates",
"startHttp2",
"supportsUrl",
"toString",
"",
"trackFailure",
"e",
"trackFailure$okhttp",
"Companion",
"okhttp"
}
k = 0x1
mv = {
0x1,
0x4,
0x0
}
.end annotation
# static fields
.field public static final Companion:Lokhttp3/internal/connection/RealConnection$Companion;
.field public static final IDLE_CONNECTION_HEALTHY_NS:J = 0x2540be400L
.field private static final MAX_TUNNEL_ATTEMPTS:I = 0x15
.field private static final NPE_THROW_WITH_NULL:Ljava/lang/String; = "throw with null exception"
# instance fields
.field private allocationLimit:I
.field private final calls:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Ljava/lang/ref/Reference<",
"Lokhttp3/internal/connection/RealCall;",
">;>;"
}
.end annotation
.end field
.field private final connectionPool:Lokhttp3/internal/connection/RealConnectionPool;
.field private handshake:Lokhttp3/Handshake;
.field private http2Connection:Lokhttp3/internal/http2/Http2Connection;
.field private idleAtNs:J
.field private noCoalescedConnections:Z
.field private noNewExchanges:Z
.field private protocol:Lokhttp3/Protocol;
.field private rawSocket:Ljava/net/Socket;
.field private refusedStreamCount:I
.field private final route:Lokhttp3/Route;
.field private routeFailureCount:I
.field private sink:Lokio/BufferedSink;
.field private socket:Ljava/net/Socket;
.field private source:Lokio/BufferedSource;
.field private successCount:I
# direct methods
.method static constructor <clinit>()V
.locals 2
new-instance v0, Lokhttp3/internal/connection/RealConnection$Companion;
const/4 v1, 0x0
invoke-direct {v0, v1}, Lokhttp3/internal/connection/RealConnection$Companion;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
sput-object v0, Lokhttp3/internal/connection/RealConnection;->Companion:Lokhttp3/internal/connection/RealConnection$Companion;
return-void
.end method
.method public constructor <init>(Lokhttp3/internal/connection/RealConnectionPool;Lokhttp3/Route;)V
.locals 1
const-string v0, "connectionPool"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "route"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 88
invoke-direct {p0}, Lokhttp3/internal/http2/Http2Connection$Listener;-><init>()V
iput-object p1, p0, Lokhttp3/internal/connection/RealConnection;->connectionPool:Lokhttp3/internal/connection/RealConnectionPool;
iput-object p2, p0, Lokhttp3/internal/connection/RealConnection;->route:Lokhttp3/Route;
const/4 p1, 0x1
iput p1, p0, Lokhttp3/internal/connection/RealConnection;->allocationLimit:I
.line 140
new-instance p1, Ljava/util/ArrayList;
invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V
check-cast p1, Ljava/util/List;
iput-object p1, p0, Lokhttp3/internal/connection/RealConnection;->calls:Ljava/util/List;
const-wide p1, 0x7fffffffffffffffL
iput-wide p1, p0, Lokhttp3/internal/connection/RealConnection;->idleAtNs:J
return-void
.end method
.method public static final synthetic access$getHandshake$p(Lokhttp3/internal/connection/RealConnection;)Lokhttp3/Handshake;
.locals 0
.line 85
iget-object p0, p0, Lokhttp3/internal/connection/RealConnection;->handshake:Lokhttp3/Handshake;
return-object p0
.end method
.method public static final synthetic access$getSocket$p(Lokhttp3/internal/connection/RealConnection;)Ljava/net/Socket;
.locals 0
.line 85
iget-object p0, p0, Lokhttp3/internal/connection/RealConnection;->socket:Ljava/net/Socket;
return-object p0
.end method
.method public static final synthetic access$setHandshake$p(Lokhttp3/internal/connection/RealConnection;Lokhttp3/Handshake;)V
.locals 0
.line 85
iput-object p1, p0, Lokhttp3/internal/connection/RealConnection;->handshake:Lokhttp3/Handshake;
return-void
.end method
.method public static final synthetic access$setSocket$p(Lokhttp3/internal/connection/RealConnection;Ljava/net/Socket;)V
.locals 0
.line 85
iput-object p1, p0, Lokhttp3/internal/connection/RealConnection;->socket:Ljava/net/Socket;
return-void
.end method
.method private final certificateSupportHost(Lokhttp3/HttpUrl;Lokhttp3/Handshake;)Z
.locals 2
.line 599
invoke-virtual {p2}, Lokhttp3/Handshake;->peerCertificates()Ljava/util/List;
move-result-object p0
.line 601
move-object p2, p0
check-cast p2, Ljava/util/Collection;
invoke-interface {p2}, Ljava/util/Collection;->isEmpty()Z
move-result p2
const/4 v0, 0x1
xor-int/2addr p2, v0
const/4 v1, 0x0
if-eqz p2, :cond_1
sget-object p2, Lokhttp3/internal/tls/OkHostnameVerifier;->INSTANCE:Lokhttp3/internal/tls/OkHostnameVerifier;
invoke-virtual {p1}, Lokhttp3/HttpUrl;->host()Ljava/lang/String;
move-result-object p1
.line 602
invoke-interface {p0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object p0
if-eqz p0, :cond_0
check-cast p0, Ljava/security/cert/X509Certificate;
.line 601
invoke-virtual {p2, p1, p0}, Lokhttp3/internal/tls/OkHostnameVerifier;->verify(Ljava/lang/String;Ljava/security/cert/X509Certificate;)Z
move-result p0
if-eqz p0, :cond_1
goto :goto_0
.line 602
:cond_0
new-instance p0, Ljava/lang/NullPointerException;
const-string p1, "null cannot be cast to non-null type java.security.cert.X509Certificate"
invoke-direct {p0, p1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
throw p0
:cond_1
move v0, v1
:goto_0
return v0
.end method
.method private final connectSocket(IILokhttp3/Call;Lokhttp3/EventListener;)V
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-object v0, p0, Lokhttp3/internal/connection/RealConnection;->route:Lokhttp3/Route;
.line 283
invoke-virtual {v0}, Lokhttp3/Route;->proxy()Ljava/net/Proxy;
move-result-object v0
iget-object v1, p0, Lokhttp3/internal/connection/RealConnection;->route:Lokhttp3/Route;
.line 284
invoke-virtual {v1}, Lokhttp3/Route;->address()Lokhttp3/Address;
move-result-object v1
.line 286
invoke-virtual {v0}, Ljava/net/Proxy;->type()Ljava/net/Proxy$Type;
move-result-object v2
if-nez v2, :cond_0
goto :goto_0
:cond_0
sget-object v3, Lokhttp3/internal/connection/RealConnection$WhenMappings;->$EnumSwitchMapping$0:[I
invoke-virtual {v2}, Ljava/net/Proxy$Type;->ordinal()I
move-result v2
aget v2, v3, v2
const/4 v3, 0x1
if-eq v2, v3, :cond_1
const/4 v3, 0x2
if-eq v2, v3, :cond_1
.line 288
:goto_0
new-instance v1, Ljava/net/Socket;
invoke-direct {v1, v0}, Ljava/net/Socket;-><init>(Ljava/net/Proxy;)V
goto :goto_1
.line 287
:cond_1
invoke-virtual {v1}, Lokhttp3/Address;->socketFactory()Ljavax/net/SocketFactory;
move-result-object v1
invoke-virtual {v1}, Ljavax/net/SocketFactory;->createSocket()Ljava/net/Socket;
move-result-object v1
invoke-static {v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
:goto_1
iput-object v1, p0, Lokhttp3/internal/connection/RealConnection;->rawSocket:Ljava/net/Socket;
iget-object v2, p0, Lokhttp3/internal/connection/RealConnection;->route:Lokhttp3/Route;
.line 292
invoke-virtual {v2}, Lokhttp3/Route;->socketAddress()Ljava/net/InetSocketAddress;
move-result-object v2
invoke-virtual {p4, p3, v2, v0}, Lokhttp3/EventListener;->connectStart(Lokhttp3/Call;Ljava/net/InetSocketAddress;Ljava/net/Proxy;)V
.line 293
invoke-virtual {v1, p2}, Ljava/net/Socket;->setSoTimeout(I)V
.line 295
:try_start_0
sget-object p2, Lokhttp3/internal/platform/Platform;->Companion:Lokhttp3/internal/platform/Platform$Companion;
invoke-virtual {p2}, Lokhttp3/internal/platform/Platform$Companion;->get()Lokhttp3/internal/platform/Platform;
move-result-object p2
iget-object p3, p0, Lokhttp3/internal/connection/RealConnection;->route:Lokhttp3/Route;
invoke-virtual {p3}, Lokhttp3/Route;->socketAddress()Ljava/net/InetSocketAddress;
move-result-object p3
invoke-virtual {p2, v1, p3, p1}, Lokhttp3/internal/platform/Platform;->connectSocket(Ljava/net/Socket;Ljava/net/InetSocketAddress;I)V
:try_end_0
.catch Ljava/net/ConnectException; {:try_start_0 .. :try_end_0} :catch_1
.line 307
:try_start_1
invoke-static {v1}, 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;->source:Lokio/BufferedSource;
.line 308
invoke-static {v1}, 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;->sink:Lokio/BufferedSink;
:try_end_1
.catch Ljava/lang/NullPointerException; {:try_start_1 .. :try_end_1} :catch_0
goto :goto_2
:catch_0
move-exception p0
.line 310
invoke-virtual {p0}, Ljava/lang/NullPointerException;->getMessage()Ljava/lang/String;
move-result-object p1
const-string p2, "throw with null exception"
invoke-static {p1, p2}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result p1
if-nez p1, :cond_2
:goto_2
return-void
.line 311
:cond_2
new-instance p1, Ljava/io/IOException;
check-cast p0, Ljava/lang/Throwable;
invoke-direct {p1, p0}, Ljava/io/IOException;-><init>(Ljava/lang/Throwable;)V
check-cast p1, Ljava/lang/Throwable;
throw p1
:catch_1
move-exception p1
.line 297
new-instance p2, Ljava/net/ConnectException;
new-instance p3, Ljava/lang/StringBuilder;
const-string p4, "Failed to connect to "
invoke-direct {p3, p4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
iget-object p0, p0, Lokhttp3/internal/connection/RealConnection;->route:Lokhttp3/Route;
invoke-virtual {p0}, Lokhttp3/Route;->socketAddress()Ljava/net/InetSocketAddress;
move-result-object p0
invoke-virtual {p3, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object p0
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {p2, p0}, Ljava/net/ConnectException;-><init>(Ljava/lang/String;)V
.line 298
check-cast p1, Ljava/lang/Throwable;
invoke-virtual {p2, p1}, Ljava/net/ConnectException;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable;
.line 297
check-cast p2, Ljava/lang/Throwable;
throw p2
.end method
.method private final connectTls(Lokhttp3/internal/connection/ConnectionSpecSelector;)V
.locals 10
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-string v0, "\n |Hostname "
const-string v1, "Hostname "
iget-object v2, p0, Lokhttp3/internal/connection/RealConnection;->route:Lokhttp3/Route;
.line 363
invoke-virtual {v2}, Lokhttp3/Route;->address()Lokhttp3/Address;
move-result-object v2
.line 364
invoke-virtual {v2}, Lokhttp3/Address;->sslSocketFactory()Ljavax/net/ssl/SSLSocketFactory;
move-result-object v3
const/4 v4, 0x0
.line 366
move-object v5, v4
check-cast v5, Ljavax/net/ssl/SSLSocket;
.line 369
:try_start_0
invoke-static {v3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
iget-object v5, p0, Lokhttp3/internal/connection/RealConnection;->rawSocket:Ljava/net/Socket;
.line 370
invoke-virtual {v2}, Lokhttp3/Address;->url()Lokhttp3/HttpUrl;
move-result-object v6
invoke-virtual {v6}, Lokhttp3/HttpUrl;->host()Ljava/lang/String;
move-result-object v6
invoke-virtual {v2}, Lokhttp3/Address;->url()Lokhttp3/HttpUrl;
move-result-object v7
invoke-virtual {v7}, Lokhttp3/HttpUrl;->port()I
move-result v7
const/4 v8, 0x1
.line 369
invoke-virtual {v3, v5, v6, v7, v8}, Ljavax/net/ssl/SSLSocketFactory;->createSocket(Ljava/net/Socket;Ljava/lang/String;IZ)Ljava/net/Socket;
move-result-object v3
if-eqz v3, :cond_7
check-cast v3, Ljavax/net/ssl/SSLSocket;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_1
.line 373
:try_start_1
invoke-virtual {p1, v3}, Lokhttp3/internal/connection/ConnectionSpecSelector;->configureSecureSocket(Ljavax/net/ssl/SSLSocket;)Lokhttp3/ConnectionSpec;
move-result-object p1
.line 374
invoke-virtual {p1}, Lokhttp3/ConnectionSpec;->supportsTlsExtensions()Z
move-result v5
if-eqz v5, :cond_0
.line 375
sget-object v5, Lokhttp3/internal/platform/Platform;->Companion:Lokhttp3/internal/platform/Platform$Companion;
invoke-virtual {v5}, Lokhttp3/internal/platform/Platform$Companion;->get()Lokhttp3/internal/platform/Platform;
move-result-object v5
invoke-virtual {v2}, Lokhttp3/Address;->url()Lokhttp3/HttpUrl;
move-result-object v6
invoke-virtual {v6}, Lokhttp3/HttpUrl;->host()Ljava/lang/String;
move-result-object v6
invoke-virtual {v2}, Lokhttp3/Address;->protocols()Ljava/util/List;
move-result-object v7
invoke-virtual {v5, v3, v6, v7}, Lokhttp3/internal/platform/Platform;->configureTlsExtensions(Ljavax/net/ssl/SSLSocket;Ljava/lang/String;Ljava/util/List;)V
.line 379
:cond_0
invoke-virtual {v3}, Ljavax/net/ssl/SSLSocket;->startHandshake()V
.line 381
invoke-virtual {v3}, Ljavax/net/ssl/SSLSocket;->getSession()Ljavax/net/ssl/SSLSession;
move-result-object v5
.line 382
sget-object v6, Lokhttp3/Handshake;->Companion:Lokhttp3/Handshake$Companion;
const-string v7, "sslSocketSession"
invoke-static {v5, v7}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v6, v5}, Lokhttp3/Handshake$Companion;->get(Ljavax/net/ssl/SSLSession;)Lokhttp3/Handshake;
move-result-object v6
.line 385
invoke-virtual {v2}, Lokhttp3/Address;->hostnameVerifier()Ljavax/net/ssl/HostnameVerifier;
move-result-object v7
invoke-static {v7}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
invoke-virtual {v2}, Lokhttp3/Address;->url()Lokhttp3/HttpUrl;
move-result-object v9
invoke-virtual {v9}, Lokhttp3/HttpUrl;->host()Ljava/lang/String;
move-result-object v9
invoke-interface {v7, v9, v5}, Ljavax/net/ssl/HostnameVerifier;->verify(Ljava/lang/String;Ljavax/net/ssl/SSLSession;)Z
move-result v5
if-nez v5, :cond_3
.line 386
invoke-virtual {v6}, Lokhttp3/Handshake;->peerCertificates()Ljava/util/List;
move-result-object p0
.line 387
move-object p1, p0
check-cast p1, Ljava/util/Collection;
invoke-interface {p1}, Ljava/util/Collection;->isEmpty()Z
move-result p1
xor-int/2addr p1, v8
if-eqz p1, :cond_2
const/4 p1, 0x0
.line 388
invoke-interface {p0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object p0
if-nez p0, :cond_1
new-instance p0, Ljava/lang/NullPointerException;
const-string p1, "null cannot be cast to non-null type java.security.cert.X509Certificate"
invoke-direct {p0, p1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
throw p0
:cond_1
check-cast p0, Ljava/security/cert/X509Certificate;
.line 389
new-instance p1, Ljavax/net/ssl/SSLPeerUnverifiedException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
.line 390
invoke-virtual {v2}, Lokhttp3/Address;->url()Lokhttp3/HttpUrl;
move-result-object v0
invoke-virtual {v0}, Lokhttp3/HttpUrl;->host()Ljava/lang/String;
move-result-object v0
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, " not verified:\n | certificate: "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
.line 391
sget-object v1, Lokhttp3/CertificatePinner;->Companion:Lokhttp3/CertificatePinner$Companion;
move-object v2, p0
check-cast v2, Ljava/security/cert/Certificate;
invoke-virtual {v1, v2}, Lokhttp3/CertificatePinner$Companion;->pin(Ljava/security/cert/Certificate;)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, "\n | DN: "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
.line 392
invoke-virtual {p0}, Ljava/security/cert/X509Certificate;->getSubjectDN()Ljava/security/Principal;
move-result-object v1
const-string v2, "cert.subjectDN"
invoke-static {v1, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
invoke-interface {v1}, Ljava/security/Principal;->getName()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, "\n | subjectAltNames: "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
.line 393
sget-object v1, Lokhttp3/internal/tls/OkHostnameVerifier;->INSTANCE:Lokhttp3/internal/tls/OkHostnameVerifier;
invoke-virtual {v1, p0}, Lokhttp3/internal/tls/OkHostnameVerifier;->allSubjectAltNames(Ljava/security/cert/X509Certificate;)Ljava/util/List;
move-result-object p0
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object p0
const-string v0, "\n "
invoke-virtual {p0, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p0
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
.line 394
invoke-static {p0, v4, v8, v4}, Lkotlin/text/StringsKt;->trimMargin$default(Ljava/lang/String;Ljava/lang/String;ILjava/lang/Object;)Ljava/lang/String;
move-result-object p0
.line 389
invoke-direct {p1, p0}, Ljavax/net/ssl/SSLPeerUnverifiedException;-><init>(Ljava/lang/String;)V
check-cast p1, Ljava/lang/Throwable;
throw p1
.line 396
:cond_2
new-instance p0, Ljavax/net/ssl/SSLPeerUnverifiedException;
.line 397
new-instance p1, Ljava/lang/StringBuilder;
invoke-direct {p1, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v2}, Lokhttp3/Address;->url()Lokhttp3/HttpUrl;
move-result-object v0
invoke-virtual {v0}, Lokhttp3/HttpUrl;->host()Ljava/lang/String;
move-result-object v0
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p1
const-string v0, " not verified (no certificates)"
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p1
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
.line 396
invoke-direct {p0, p1}, Ljavax/net/ssl/SSLPeerUnverifiedException;-><init>(Ljava/lang/String;)V
check-cast p0, Ljava/lang/Throwable;
throw p0
.line 401
:cond_3
invoke-virtual {v2}, Lokhttp3/Address;->certificatePinner()Lokhttp3/CertificatePinner;
move-result-object v0
invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
.line 403
new-instance v1, Lokhttp3/Handshake;
invoke-virtual {v6}, Lokhttp3/Handshake;->tlsVersion()Lokhttp3/TlsVersion;
move-result-object v5
invoke-virtual {v6}, Lokhttp3/Handshake;->cipherSuite()Lokhttp3/CipherSuite;
move-result-object v7
.line 404
invoke-virtual {v6}, Lokhttp3/Handshake;->localCertificates()Ljava/util/List;
move-result-object v8
new-instance v9, Lokhttp3/internal/connection/RealConnection$connectTls$1;
invoke-direct {v9, v0, v6, v2}, Lokhttp3/internal/connection/RealConnection$connectTls$1;-><init>(Lokhttp3/CertificatePinner;Lokhttp3/Handshake;Lokhttp3/Address;)V
check-cast v9, Lkotlin/jvm/functions/Function0;
.line 403
invoke-direct {v1, v5, v7, v8, v9}, Lokhttp3/Handshake;-><init>(Lokhttp3/TlsVersion;Lokhttp3/CipherSuite;Ljava/util/List;Lkotlin/jvm/functions/Function0;)V
iput-object v1, p0, Lokhttp3/internal/connection/RealConnection;->handshake:Lokhttp3/Handshake;
.line 410
invoke-virtual {v2}, Lokhttp3/Address;->url()Lokhttp3/HttpUrl;
move-result-object v1
invoke-virtual {v1}, Lokhttp3/HttpUrl;->host()Ljava/lang/String;
move-result-object v1
new-instance v2, Lokhttp3/internal/connection/RealConnection$connectTls$2;
invoke-direct {v2, p0}, Lokhttp3/internal/connection/RealConnection$connectTls$2;-><init>(Lokhttp3/internal/connection/RealConnection;)V
check-cast v2, Lkotlin/jvm/functions/Function0;
invoke-virtual {v0, v1, v2}, Lokhttp3/CertificatePinner;->check$okhttp(Ljava/lang/String;Lkotlin/jvm/functions/Function0;)V
.line 415
invoke-virtual {p1}, Lokhttp3/ConnectionSpec;->supportsTlsExtensions()Z
move-result p1
if-eqz p1, :cond_4
.line 416
sget-object p1, Lokhttp3/internal/platform/Platform;->Companion:Lokhttp3/internal/platform/Platform$Companion;
invoke-virtual {p1}, Lokhttp3/internal/platform/Platform$Companion;->get()Lokhttp3/internal/platform/Platform;
move-result-object p1
invoke-virtual {p1, v3}, Lokhttp3/internal/platform/Platform;->getSelectedProtocol(Ljavax/net/ssl/SSLSocket;)Ljava/lang/String;
move-result-object v4
.line 420
:cond_4
move-object p1, v3
check-cast p1, Ljava/net/Socket;
iput-object p1, p0, Lokhttp3/internal/connection/RealConnection;->socket:Ljava/net/Socket;
.line 421
move-object p1, v3
check-cast p1, 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;->source:Lokio/BufferedSource;
.line 422
move-object p1, v3
check-cast p1, 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;->sink:Lokio/BufferedSink;
if-eqz v4, :cond_5
.line 423
sget-object p1, Lokhttp3/Protocol;->Companion:Lokhttp3/Protocol$Companion;
invoke-virtual {p1, v4}, Lokhttp3/Protocol$Companion;->get(Ljava/lang/String;)Lokhttp3/Protocol;
move-result-object p1
goto :goto_0
:cond_5
sget-object p1, Lokhttp3/Protocol;->HTTP_1_1:Lokhttp3/Protocol;
:goto_0
iput-object p1, p0, Lokhttp3/internal/connection/RealConnection;->protocol:Lokhttp3/Protocol;
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
if-eqz v3, :cond_6
.line 427
sget-object p0, Lokhttp3/internal/platform/Platform;->Companion:Lokhttp3/internal/platform/Platform$Companion;
invoke-virtual {p0}, Lokhttp3/internal/platform/Platform$Companion;->get()Lokhttp3/internal/platform/Platform;
move-result-object p0
invoke-virtual {p0, v3}, Lokhttp3/internal/platform/Platform;->afterHandshake(Ljavax/net/ssl/SSLSocket;)V
:cond_6
return-void
:catchall_0
move-exception p0
move-object v4, v3
goto :goto_1
.line 369
:cond_7
:try_start_2
new-instance p0, Ljava/lang/NullPointerException;
const-string p1, "null cannot be cast to non-null type javax.net.ssl.SSLSocket"
invoke-direct {p0, p1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
throw p0
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_1
:catchall_1
move-exception p0
:goto_1
if-eqz v4, :cond_8
.line 427
sget-object p1, Lokhttp3/internal/platform/Platform;->Companion:Lokhttp3/internal/platform/Platform$Companion;
invoke-virtual {p1}, Lokhttp3/internal/platform/Platform$Companion;->get()Lokhttp3/internal/platform/Platform;
move-result-object p1
invoke-virtual {p1, v4}, Lokhttp3/internal/platform/Platform;->afterHandshake(Ljavax/net/ssl/SSLSocket;)V
:cond_8
if-eqz v4, :cond_9
.line 430
check-cast v4, Ljava/net/Socket;
invoke-static {v4}, Lokhttp3/internal/Util;->closeQuietly(Ljava/net/Socket;)V
:cond_9
throw p0
.end method
.method private final connectTunnel(IIILokhttp3/Call;Lokhttp3/EventListener;)V
.locals 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 258
invoke-direct {p0}, Lokhttp3/internal/connection/RealConnection;->createTunnelRequest()Lokhttp3/Request;
move-result-object v0
.line 259
invoke-virtual {v0}, Lokhttp3/Request;->url()Lokhttp3/HttpUrl;
move-result-object v1
const/4 v2, 0x0
:goto_0
const/16 v3, 0x15
if-ge v2, v3, :cond_1
.line 261
invoke-direct {p0, p1, p2, p4, p5}, Lokhttp3/internal/connection/RealConnection;->connectSocket(IILokhttp3/Call;Lokhttp3/EventListener;)V
.line 262
invoke-direct {p0, p2, p3, v0, v1}, Lokhttp3/internal/connection/RealConnection;->createTunnel(IILokhttp3/Request;Lokhttp3/HttpUrl;)Lokhttp3/Request;
move-result-object v0
if-eqz v0, :cond_1
iget-object v3, p0, Lokhttp3/internal/connection/RealConnection;->rawSocket:Ljava/net/Socket;
if-eqz v3, :cond_0
.line 267
invoke-static {v3}, Lokhttp3/internal/Util;->closeQuietly(Ljava/net/Socket;)V
:cond_0
const/4 v3, 0x0
.line 268
move-object v4, v3
check-cast v4, Ljava/net/Socket;
iput-object v3, p0, Lokhttp3/internal/connection/RealConnection;->rawSocket:Ljava/net/Socket;
.line 269
move-object v4, v3
check-cast v4, Lokio/BufferedSink;
iput-object v3, p0, Lokhttp3/internal/connection/RealConnection;->sink:Lokio/BufferedSink;
.line 270
move-object v4, v3
check-cast v4, Lokio/BufferedSource;
iput-object v3, p0, Lokhttp3/internal/connection/RealConnection;->source:Lokio/BufferedSource;
iget-object v4, p0, Lokhttp3/internal/connection/RealConnection;->route:Lokhttp3/Route;
.line 271
invoke-virtual {v4}, Lokhttp3/Route;->socketAddress()Ljava/net/InetSocketAddress;
move-result-object v4
iget-object v5, p0, Lokhttp3/internal/connection/RealConnection;->route:Lokhttp3/Route;
invoke-virtual {v5}, Lokhttp3/Route;->proxy()Ljava/net/Proxy;
move-result-object v5
invoke-virtual {p5, p4, v4, v5, v3}, Lokhttp3/EventListener;->connectEnd(Lokhttp3/Call;Ljava/net/InetSocketAddress;Ljava/net/Proxy;Lokhttp3/Protocol;)V
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_1
return-void
.end method
.method private final createTunnel(IILokhttp3/Request;Lokhttp3/HttpUrl;)Lokhttp3/Request;
.locals 9
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 448
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "CONNECT "
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
const/4 v1, 0x1
invoke-static {p4, v1}, Lokhttp3/internal/Util;->toHostHeader(Lokhttp3/HttpUrl;Z)Ljava/lang/String;
move-result-object p4
invoke-virtual {v0, p4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p4
const-string v0, " HTTP/1.1"
invoke-virtual {p4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p4
invoke-virtual {p4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p4
:goto_0
iget-object v0, p0, Lokhttp3/internal/connection/RealConnection;->source:Lokio/BufferedSource;
.line 450
invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
iget-object v2, p0, Lokhttp3/internal/connection/RealConnection;->sink:Lokio/BufferedSink;
.line 451
invoke-static {v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
.line 452
new-instance v3, Lokhttp3/internal/http1/Http1ExchangeCodec;
const/4 v4, 0x0
invoke-direct {v3, v4, p0, v0, v2}, Lokhttp3/internal/http1/Http1ExchangeCodec;-><init>(Lokhttp3/OkHttpClient;Lokhttp3/internal/connection/RealConnection;Lokio/BufferedSource;Lokio/BufferedSink;)V
.line 453
invoke-interface {v0}, Lokio/BufferedSource;->timeout()Lokio/Timeout;
move-result-object v5
int-to-long v6, p1
sget-object v8, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invoke-virtual {v5, v6, v7, v8}, Lokio/Timeout;->timeout(JLjava/util/concurrent/TimeUnit;)Lokio/Timeout;
.line 454
invoke-interface {v2}, Lokio/BufferedSink;->timeout()Lokio/Timeout;
move-result-object v5
int-to-long v6, p2
sget-object v8, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invoke-virtual {v5, v6, v7, v8}, Lokio/Timeout;->timeout(JLjava/util/concurrent/TimeUnit;)Lokio/Timeout;
.line 455
invoke-virtual {p3}, Lokhttp3/Request;->headers()Lokhttp3/Headers;
move-result-object v5
invoke-virtual {v3, v5, p4}, Lokhttp3/internal/http1/Http1ExchangeCodec;->writeRequest(Lokhttp3/Headers;Ljava/lang/String;)V
.line 456
invoke-virtual {v3}, Lokhttp3/internal/http1/Http1ExchangeCodec;->finishRequest()V
const/4 v5, 0x0
.line 457
invoke-virtual {v3, v5}, Lokhttp3/internal/http1/Http1ExchangeCodec;->readResponseHeaders(Z)Lokhttp3/Response$Builder;
move-result-object v5
invoke-static {v5}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
.line 458
invoke-virtual {v5, p3}, Lokhttp3/Response$Builder;->request(Lokhttp3/Request;)Lokhttp3/Response$Builder;
move-result-object p3
.line 459
invoke-virtual {p3}, Lokhttp3/Response$Builder;->build()Lokhttp3/Response;
move-result-object p3
.line 460
invoke-virtual {v3, p3}, Lokhttp3/internal/http1/Http1ExchangeCodec;->skipConnectBody(Lokhttp3/Response;)V
.line 462
invoke-virtual {p3}, Lokhttp3/Response;->code()I
move-result v3
const/16 v5, 0xc8
if-eq v3, v5, :cond_3
const/16 v0, 0x197
if-ne v3, v0, :cond_2
iget-object v0, p0, Lokhttp3/internal/connection/RealConnection;->route:Lokhttp3/Route;
.line 475
invoke-virtual {v0}, Lokhttp3/Route;->address()Lokhttp3/Address;
move-result-object v0
invoke-virtual {v0}, Lokhttp3/Address;->proxyAuthenticator()Lokhttp3/Authenticator;
move-result-object v0
iget-object v2, p0, Lokhttp3/internal/connection/RealConnection;->route:Lokhttp3/Route;
invoke-interface {v0, v2, p3}, Lokhttp3/Authenticator;->authenticate(Lokhttp3/Route;Lokhttp3/Response;)Lokhttp3/Request;
move-result-object v0
if-eqz v0, :cond_1
const-string v2, "Connection"
const/4 v3, 0x2
.line 478
invoke-static {p3, v2, v4, v3, v4}, Lokhttp3/Response;->header$default(Lokhttp3/Response;Ljava/lang/String;Ljava/lang/String;ILjava/lang/Object;)Ljava/lang/String;
move-result-object p3
const-string v2, "close"
invoke-static {v2, p3, v1}, Lkotlin/text/StringsKt;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
move-result p3
if-eqz p3, :cond_0
return-object v0
:cond_0
move-object p3, v0
goto :goto_0
.line 476
:cond_1
new-instance p0, Ljava/io/IOException;
const-string p1, "Failed to authenticate with proxy"
invoke-direct {p0, p1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
check-cast p0, Ljava/lang/Throwable;
throw p0
.line 483
:cond_2
new-instance p0, Ljava/io/IOException;
new-instance p1, Ljava/lang/StringBuilder;
const-string p2, "Unexpected response code for CONNECT: "
invoke-direct {p1, p2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {p3}, Lokhttp3/Response;->code()I
move-result p2
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object p1
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p0, p1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
check-cast p0, Ljava/lang/Throwable;
throw p0
.line 468
:cond_3
invoke-interface {v0}, Lokio/BufferedSource;->getBuffer()Lokio/Buffer;
move-result-object p0
invoke-virtual {p0}, Lokio/Buffer;->exhausted()Z
move-result p0
if-eqz p0, :cond_4
invoke-interface {v2}, Lokio/BufferedSink;->getBuffer()Lokio/Buffer;
move-result-object p0
invoke-virtual {p0}, Lokio/Buffer;->exhausted()Z
move-result p0
if-eqz p0, :cond_4
return-object v4
.line 469
:cond_4
new-instance p0, Ljava/io/IOException;
const-string p1, "TLS tunnel buffered too many bytes!"
invoke-direct {p0, p1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
check-cast p0, Ljava/lang/Throwable;
throw p0
.end method
.method private final createTunnelRequest()Lokhttp3/Request;
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 499
new-instance v0, Lokhttp3/Request$Builder;
invoke-direct {v0}, Lokhttp3/Request$Builder;-><init>()V
iget-object v1, p0, Lokhttp3/internal/connection/RealConnection;->route:Lokhttp3/Route;
.line 500
invoke-virtual {v1}, Lokhttp3/Route;->address()Lokhttp3/Address;
move-result-object v1
invoke-virtual {v1}, Lokhttp3/Address;->url()Lokhttp3/HttpUrl;
move-result-object v1
invoke-virtual {v0, v1}, Lokhttp3/Request$Builder;->url(Lokhttp3/HttpUrl;)Lokhttp3/Request$Builder;
move-result-object v0
const-string v1, "CONNECT"
const/4 v2, 0x0
.line 501
invoke-virtual {v0, v1, v2}, Lokhttp3/Request$Builder;->method(Ljava/lang/String;Lokhttp3/RequestBody;)Lokhttp3/Request$Builder;
move-result-object v0
iget-object v1, p0, Lokhttp3/internal/connection/RealConnection;->route:Lokhttp3/Route;
.line 502
invoke-virtual {v1}, Lokhttp3/Route;->address()Lokhttp3/Address;
move-result-object v1
invoke-virtual {v1}, Lokhttp3/Address;->url()Lokhttp3/HttpUrl;
move-result-object v1
const/4 v2, 0x1
invoke-static {v1, v2}, Lokhttp3/internal/Util;->toHostHeader(Lokhttp3/HttpUrl;Z)Ljava/lang/String;
move-result-object v1
const-string v2, "Host"
invoke-virtual {v0, v2, v1}, Lokhttp3/Request$Builder;->header(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Request$Builder;
move-result-object v0
const-string v1, "Proxy-Connection"
const-string v2, "Keep-Alive"
.line 503
invoke-virtual {v0, v1, v2}, Lokhttp3/Request$Builder;->header(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Request$Builder;
move-result-object v0
const-string v1, "User-Agent"
const-string v2, "okhttp/4.9.1"
.line 504
invoke-virtual {v0, v1, v2}, Lokhttp3/Request$Builder;->header(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Request$Builder;
move-result-object v0
.line 505
invoke-virtual {v0}, Lokhttp3/Request$Builder;->build()Lokhttp3/Request;
move-result-object v0
.line 507
new-instance v1, Lokhttp3/Response$Builder;
invoke-direct {v1}, Lokhttp3/Response$Builder;-><init>()V
.line 508
invoke-virtual {v1, v0}, Lokhttp3/Response$Builder;->request(Lokhttp3/Request;)Lokhttp3/Response$Builder;
move-result-object v1
.line 509
sget-object v2, Lokhttp3/Protocol;->HTTP_1_1:Lokhttp3/Protocol;
invoke-virtual {v1, v2}, Lokhttp3/Response$Builder;->protocol(Lokhttp3/Protocol;)Lokhttp3/Response$Builder;
move-result-object v1
const/16 v2, 0x197
.line 510
invoke-virtual {v1, v2}, Lokhttp3/Response$Builder;->code(I)Lokhttp3/Response$Builder;
move-result-object v1
const-string v2, "Preemptive Authenticate"
.line 511
invoke-virtual {v1, v2}, Lokhttp3/Response$Builder;->message(Ljava/lang/String;)Lokhttp3/Response$Builder;
move-result-object v1
.line 512
sget-object v2, Lokhttp3/internal/Util;->EMPTY_RESPONSE:Lokhttp3/ResponseBody;
invoke-virtual {v1, v2}, Lokhttp3/Response$Builder;->body(Lokhttp3/ResponseBody;)Lokhttp3/Response$Builder;
move-result-object v1
const-wide/16 v2, -0x1
.line 513
invoke-virtual {v1, v2, v3}, Lokhttp3/Response$Builder;->sentRequestAtMillis(J)Lokhttp3/Response$Builder;
move-result-object v1
.line 514
invoke-virtual {v1, v2, v3}, Lokhttp3/Response$Builder;->receivedResponseAtMillis(J)Lokhttp3/Response$Builder;
move-result-object v1
const-string v2, "Proxy-Authenticate"
const-string v3, "OkHttp-Preemptive"
.line 515
invoke-virtual {v1, v2, v3}, Lokhttp3/Response$Builder;->header(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Response$Builder;
move-result-object v1
.line 516
invoke-virtual {v1}, Lokhttp3/Response$Builder;->build()Lokhttp3/Response;
move-result-object v1
iget-object v2, p0, Lokhttp3/internal/connection/RealConnection;->route:Lokhttp3/Route;
.line 518
invoke-virtual {v2}, Lokhttp3/Route;->address()Lokhttp3/Address;
move-result-object v2
invoke-virtual {v2}, Lokhttp3/Address;->proxyAuthenticator()Lokhttp3/Authenticator;
move-result-object v2
iget-object p0, p0, Lokhttp3/internal/connection/RealConnection;->route:Lokhttp3/Route;
.line 519
invoke-interface {v2, p0, v1}, Lokhttp3/Authenticator;->authenticate(Lokhttp3/Route;Lokhttp3/Response;)Lokhttp3/Request;
move-result-object p0
if-eqz p0, :cond_0
move-object v0, p0
:cond_0
return-object v0
.end method
.method private final establishProtocol(Lokhttp3/internal/connection/ConnectionSpecSelector;ILokhttp3/Call;Lokhttp3/EventListener;)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-object v0, p0, Lokhttp3/internal/connection/RealConnection;->route:Lokhttp3/Route;
.line 323
invoke-virtual {v0}, Lokhttp3/Route;->address()Lokhttp3/Address;
move-result-object v0
invoke-virtual {v0}, Lokhttp3/Address;->sslSocketFactory()Ljavax/net/ssl/SSLSocketFactory;
move-result-object v0
if-nez v0, :cond_1
iget-object p1, p0, Lokhttp3/internal/connection/RealConnection;->route:Lokhttp3/Route;
.line 324
invoke-virtual {p1}, Lokhttp3/Route;->address()Lokhttp3/Address;
move-result-object p1
invoke-virtual {p1}, Lokhttp3/Address;->protocols()Ljava/util/List;
move-result-object p1
sget-object p3, Lokhttp3/Protocol;->H2_PRIOR_KNOWLEDGE:Lokhttp3/Protocol;
invoke-interface {p1, p3}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
move-result p1
if-eqz p1, :cond_0
iget-object p1, p0, Lokhttp3/internal/connection/RealConnection;->rawSocket:Ljava/net/Socket;
iput-object p1, p0, Lokhttp3/internal/connection/RealConnection;->socket:Ljava/net/Socket;
.line 326
sget-object p1, Lokhttp3/Protocol;->H2_PRIOR_KNOWLEDGE:Lokhttp3/Protocol;
iput-object p1, p0, Lokhttp3/internal/connection/RealConnection;->protocol:Lokhttp3/Protocol;
.line 327
invoke-direct {p0, p2}, Lokhttp3/internal/connection/RealConnection;->startHttp2(I)V
return-void
:cond_0
iget-object p1, p0, Lokhttp3/internal/connection/RealConnection;->rawSocket:Ljava/net/Socket;
iput-object p1, p0, Lokhttp3/internal/connection/RealConnection;->socket:Ljava/net/Socket;
.line 332
sget-object p1, Lokhttp3/Protocol;->HTTP_1_1:Lokhttp3/Protocol;
iput-object p1, p0, Lokhttp3/internal/connection/RealConnection;->protocol:Lokhttp3/Protocol;
return-void
.line 336
:cond_1
invoke-virtual {p4, p3}, Lokhttp3/EventListener;->secureConnectStart(Lokhttp3/Call;)V
.line 337
invoke-direct {p0, p1}, Lokhttp3/internal/connection/RealConnection;->connectTls(Lokhttp3/internal/connection/ConnectionSpecSelector;)V
iget-object p1, p0, Lokhttp3/internal/connection/RealConnection;->handshake:Lokhttp3/Handshake;
.line 338
invoke-virtual {p4, p3, p1}, Lokhttp3/EventListener;->secureConnectEnd(Lokhttp3/Call;Lokhttp3/Handshake;)V
iget-object p1, p0, Lokhttp3/internal/connection/RealConnection;->protocol:Lokhttp3/Protocol;
.line 340
sget-object p3, Lokhttp3/Protocol;->HTTP_2:Lokhttp3/Protocol;
if-ne p1, p3, :cond_2
.line 341
invoke-direct {p0, p2}, Lokhttp3/internal/connection/RealConnection;->startHttp2(I)V
:cond_2
return-void
.end method
.method private final routeMatchesAny(Ljava/util/List;)Z
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lokhttp3/Route;",
">;)Z"
}
.end annotation
.line 574
check-cast p1, Ljava/lang/Iterable;
.line 771
instance-of v0, p1, Ljava/util/Collection;
const/4 v1, 0x0
if-eqz v0, :cond_0
move-object v0, p1
check-cast v0, Ljava/util/Collection;
invoke-interface {v0}, Ljava/util/Collection;->isEmpty()Z
move-result v0
if-eqz v0, :cond_0
goto :goto_0
.line 772
:cond_0
invoke-interface {p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object p1
:cond_1
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_2
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lokhttp3/Route;
.line 575
invoke-virtual {v0}, Lokhttp3/Route;->proxy()Ljava/net/Proxy;
move-result-object v2
invoke-virtual {v2}, 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-ne v2, v3, :cond_1
iget-object v2, p0, Lokhttp3/internal/connection/RealConnection;->route:Lokhttp3/Route;
.line 576
invoke-virtual {v2}, Lokhttp3/Route;->proxy()Ljava/net/Proxy;
move-result-object v2
invoke-virtual {v2}, 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-ne v2, v3, :cond_1
iget-object v2, p0, Lokhttp3/internal/connection/RealConnection;->route:Lokhttp3/Route;
invoke-virtual {v2}, Lokhttp3/Route;->socketAddress()Ljava/net/InetSocketAddress;
move-result-object v2
invoke-virtual {v0}, Lokhttp3/Route;->socketAddress()Ljava/net/InetSocketAddress;
move-result-object v0
invoke-static {v2, v0}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
const/4 v1, 0x1
:cond_2
:goto_0
return v1
.end method
.method private final startHttp2(I)V
.locals 7
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-object v0, p0, Lokhttp3/internal/connection/RealConnection;->socket:Ljava/net/Socket;
.line 347
invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
iget-object v1, p0, Lokhttp3/internal/connection/RealConnection;->source:Lokio/BufferedSource;
.line 348
invoke-static {v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
iget-object v2, p0, Lokhttp3/internal/connection/RealConnection;->sink:Lokio/BufferedSink;
.line 349
invoke-static {v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
const/4 v3, 0x0
.line 350
invoke-virtual {v0, v3}, Ljava/net/Socket;->setSoTimeout(I)V
.line 351
new-instance v4, Lokhttp3/internal/http2/Http2Connection$Builder;
const/4 v5, 0x1
sget-object v6, Lokhttp3/internal/concurrent/TaskRunner;->INSTANCE:Lokhttp3/internal/concurrent/TaskRunner;
invoke-direct {v4, v5, v6}, Lokhttp3/internal/http2/Http2Connection$Builder;-><init>(ZLokhttp3/internal/concurrent/TaskRunner;)V
iget-object v5, p0, Lokhttp3/internal/connection/RealConnection;->route:Lokhttp3/Route;
.line 352
invoke-virtual {v5}, Lokhttp3/Route;->address()Lokhttp3/Address;
move-result-object v5
invoke-virtual {v5}, Lokhttp3/Address;->url()Lokhttp3/HttpUrl;
move-result-object v5
invoke-virtual {v5}, Lokhttp3/HttpUrl;->host()Ljava/lang/String;
move-result-object v5
invoke-virtual {v4, v0, v5, v1, v2}, Lokhttp3/internal/http2/Http2Connection$Builder;->socket(Ljava/net/Socket;Ljava/lang/String;Lokio/BufferedSource;Lokio/BufferedSink;)Lokhttp3/internal/http2/Http2Connection$Builder;
move-result-object v0
.line 353
move-object v1, p0
check-cast v1, Lokhttp3/internal/http2/Http2Connection$Listener;
invoke-virtual {v0, v1}, Lokhttp3/internal/http2/Http2Connection$Builder;->listener(Lokhttp3/internal/http2/Http2Connection$Listener;)Lokhttp3/internal/http2/Http2Connection$Builder;
move-result-object v0
.line 354
invoke-virtual {v0, p1}, Lokhttp3/internal/http2/Http2Connection$Builder;->pingIntervalMillis(I)Lokhttp3/internal/http2/Http2Connection$Builder;
move-result-object p1
.line 355
invoke-virtual {p1}, Lokhttp3/internal/http2/Http2Connection$Builder;->build()Lokhttp3/internal/http2/Http2Connection;
move-result-object p1
iput-object p1, p0, Lokhttp3/internal/connection/RealConnection;->http2Connection:Lokhttp3/internal/http2/Http2Connection;
.line 357
sget-object v0, Lokhttp3/internal/http2/Http2Connection;->Companion:Lokhttp3/internal/http2/Http2Connection$Companion;
invoke-virtual {v0}, Lokhttp3/internal/http2/Http2Connection$Companion;->getDEFAULT_SETTINGS()Lokhttp3/internal/http2/Settings;
move-result-object v0
invoke-virtual {v0}, Lokhttp3/internal/http2/Settings;->getMaxConcurrentStreams()I
move-result v0
iput v0, p0, Lokhttp3/internal/connection/RealConnection;->allocationLimit:I
const/4 p0, 0x0
const/4 v0, 0x3
.line 358
invoke-static {p1, v3, p0, v0, p0}, Lokhttp3/internal/http2/Http2Connection;->start$default(Lokhttp3/internal/http2/Http2Connection;ZLokhttp3/internal/concurrent/TaskRunner;ILjava/lang/Object;)V
return-void
.end method
.method private final supportsUrl(Lokhttp3/HttpUrl;)Z
.locals 4
.line 774
sget-boolean v0, Lokhttp3/internal/Util;->assertionsEnabled:Z
if-eqz v0, :cond_1
invoke-static {p0}, Ljava/lang/Thread;->holdsLock(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
goto :goto_0
.line 775
:cond_0
new-instance p1, Ljava/lang/AssertionError;
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "Thread "
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
move-result-object v1
const-string v2, "Thread.currentThread()"
invoke-static {v1, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v1}, Ljava/lang/Thread;->getName()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, " MUST hold lock on "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object p0
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {p1, p0}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
check-cast p1, Ljava/lang/Throwable;
throw p1
:cond_1
:goto_0
iget-object v0, p0, Lokhttp3/internal/connection/RealConnection;->route:Lokhttp3/Route;
.line 584
invoke-virtual {v0}, Lokhttp3/Route;->address()Lokhttp3/Address;
move-result-object v0
invoke-virtual {v0}, Lokhttp3/Address;->url()Lokhttp3/HttpUrl;
move-result-object v0
.line 586
invoke-virtual {p1}, Lokhttp3/HttpUrl;->port()I
move-result v1
invoke-virtual {v0}, Lokhttp3/HttpUrl;->port()I
move-result v2
const/4 v3, 0x0
if-eq v1, v2, :cond_2
return v3
.line 590
:cond_2
invoke-virtual {p1}, Lokhttp3/HttpUrl;->host()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0}, Lokhttp3/HttpUrl;->host()Ljava/lang/String;
move-result-object v0
invoke-static {v1, v0}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
const/4 v1, 0x1
if-eqz v0, :cond_3
return v1
:cond_3
iget-boolean v0, p0, Lokhttp3/internal/connection/RealConnection;->noCoalescedConnections:Z
if-nez v0, :cond_4
iget-object v0, p0, Lokhttp3/internal/connection/RealConnection;->handshake:Lokhttp3/Handshake;
if-eqz v0, :cond_4
.line 595
invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
invoke-direct {p0, p1, v0}, Lokhttp3/internal/connection/RealConnection;->certificateSupportHost(Lokhttp3/HttpUrl;Lokhttp3/Handshake;)Z
move-result p0
if-eqz p0, :cond_4
move v3, v1
:cond_4
return v3
.end method
# virtual methods
.method public final cancel()V
.locals 0
iget-object p0, p0, Lokhttp3/internal/connection/RealConnection;->rawSocket:Ljava/net/Socket;
if-eqz p0, :cond_0
.line 641
invoke-static {p0}, Lokhttp3/internal/Util;->closeQuietly(Ljava/net/Socket;)V
:cond_0
return-void
.end method
.method public final connect(IIIIZLokhttp3/Call;Lokhttp3/EventListener;)V
.locals 16
move-object/from16 v7, p0
move-object/from16 v8, p6
move-object/from16 v9, p7
const-string v0, "call"
invoke-static {v8, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "eventListener"
invoke-static {v9, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v0, v7, Lokhttp3/internal/connection/RealConnection;->protocol:Lokhttp3/Protocol;
const/4 v10, 0x1
if-nez v0, :cond_0
move v0, v10
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
if-eqz v0, :cond_d
const/4 v11, 0x0
.line 177
move-object v0, v11
check-cast v0, Lokhttp3/internal/connection/RouteException;
iget-object v0, v7, Lokhttp3/internal/connection/RealConnection;->route:Lokhttp3/Route;
.line 178
invoke-virtual {v0}, Lokhttp3/Route;->address()Lokhttp3/Address;
move-result-object v0
invoke-virtual {v0}, Lokhttp3/Address;->connectionSpecs()Ljava/util/List;
move-result-object v0
.line 179
new-instance v12, Lokhttp3/internal/connection/ConnectionSpecSelector;
invoke-direct {v12, v0}, Lokhttp3/internal/connection/ConnectionSpecSelector;-><init>(Ljava/util/List;)V
iget-object v1, v7, Lokhttp3/internal/connection/RealConnection;->route:Lokhttp3/Route;
.line 181
invoke-virtual {v1}, Lokhttp3/Route;->address()Lokhttp3/Address;
move-result-object v1
invoke-virtual {v1}, Lokhttp3/Address;->sslSocketFactory()Ljavax/net/ssl/SSLSocketFactory;
move-result-object v1
if-nez v1, :cond_3
.line 182
sget-object v1, Lokhttp3/ConnectionSpec;->CLEARTEXT:Lokhttp3/ConnectionSpec;
invoke-interface {v0, v1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_2
iget-object v0, v7, Lokhttp3/internal/connection/RealConnection;->route:Lokhttp3/Route;
.line 186
invoke-virtual {v0}, Lokhttp3/Route;->address()Lokhttp3/Address;
move-result-object v0
invoke-virtual {v0}, Lokhttp3/Address;->url()Lokhttp3/HttpUrl;
move-result-object v0
invoke-virtual {v0}, Lokhttp3/HttpUrl;->host()Ljava/lang/String;
move-result-object v0
.line 187
sget-object v1, Lokhttp3/internal/platform/Platform;->Companion:Lokhttp3/internal/platform/Platform$Companion;
invoke-virtual {v1}, Lokhttp3/internal/platform/Platform$Companion;->get()Lokhttp3/internal/platform/Platform;
move-result-object v1
invoke-virtual {v1, v0}, Lokhttp3/internal/platform/Platform;->isCleartextTrafficPermitted(Ljava/lang/String;)Z
move-result v1
if-eqz v1, :cond_1
goto :goto_1
.line 188
:cond_1
new-instance v1, Lokhttp3/internal/connection/RouteException;
new-instance v2, Ljava/net/UnknownServiceException;
.line 189
new-instance v3, Ljava/lang/StringBuilder;
const-string v4, "CLEARTEXT communication to "
invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v3, " not permitted by network security policy"
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
.line 188
invoke-direct {v2, v0}, Ljava/net/UnknownServiceException;-><init>(Ljava/lang/String;)V
check-cast v2, Ljava/io/IOException;
invoke-direct {v1, v2}, Lokhttp3/internal/connection/RouteException;-><init>(Ljava/io/IOException;)V
check-cast v1, Ljava/lang/Throwable;
throw v1
.line 183
:cond_2
new-instance v0, Lokhttp3/internal/connection/RouteException;
new-instance v1, Ljava/net/UnknownServiceException;
const-string v2, "CLEARTEXT communication not enabled for client"
invoke-direct {v1, v2}, Ljava/net/UnknownServiceException;-><init>(Ljava/lang/String;)V
check-cast v1, Ljava/io/IOException;
invoke-direct {v0, v1}, Lokhttp3/internal/connection/RouteException;-><init>(Ljava/io/IOException;)V
check-cast v0, Ljava/lang/Throwable;
throw v0
:cond_3
iget-object v0, v7, Lokhttp3/internal/connection/RealConnection;->route:Lokhttp3/Route;
.line 192
invoke-virtual {v0}, Lokhttp3/Route;->address()Lokhttp3/Address;
move-result-object v0
invoke-virtual {v0}, Lokhttp3/Address;->protocols()Ljava/util/List;
move-result-object v0
sget-object v1, Lokhttp3/Protocol;->H2_PRIOR_KNOWLEDGE:Lokhttp3/Protocol;
invoke-interface {v0, v1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_c
:goto_1
move-object v13, v11
:goto_2
:try_start_0
iget-object v0, v7, Lokhttp3/internal/connection/RealConnection;->route:Lokhttp3/Route;
.line 200
invoke-virtual {v0}, Lokhttp3/Route;->requiresTunnel()Z
move-result v0
if-eqz v0, :cond_5
move-object/from16 v1, p0
move/from16 v2, p1
move/from16 v3, p2
move/from16 v4, p3
move-object/from16 v5, p6
move-object/from16 v6, p7
.line 201
invoke-direct/range {v1 .. v6}, Lokhttp3/internal/connection/RealConnection;->connectTunnel(IIILokhttp3/Call;Lokhttp3/EventListener;)V
iget-object v0, v7, Lokhttp3/internal/connection/RealConnection;->rawSocket:Ljava/net/Socket;
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_2
if-nez v0, :cond_4
goto :goto_4
:cond_4
move/from16 v14, p1
move/from16 v15, p2
goto :goto_3
:cond_5
move/from16 v14, p1
move/from16 v15, p2
.line 207
:try_start_1
invoke-direct {v7, v14, v15, v8, v9}, Lokhttp3/internal/connection/RealConnection;->connectSocket(IILokhttp3/Call;Lokhttp3/EventListener;)V
:try_end_1
.catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_1
:goto_3
move/from16 v6, p4
.line 209
:try_start_2
invoke-direct {v7, v12, v6, v8, v9}, Lokhttp3/internal/connection/RealConnection;->establishProtocol(Lokhttp3/internal/connection/ConnectionSpecSelector;ILokhttp3/Call;Lokhttp3/EventListener;)V
iget-object v0, v7, Lokhttp3/internal/connection/RealConnection;->route:Lokhttp3/Route;
.line 210
invoke-virtual {v0}, Lokhttp3/Route;->socketAddress()Ljava/net/InetSocketAddress;
move-result-object v0
iget-object v1, v7, Lokhttp3/internal/connection/RealConnection;->route:Lokhttp3/Route;
invoke-virtual {v1}, Lokhttp3/Route;->proxy()Ljava/net/Proxy;
move-result-object v1
iget-object v2, v7, Lokhttp3/internal/connection/RealConnection;->protocol:Lokhttp3/Protocol;
invoke-virtual {v9, v8, v0, v1, v2}, Lokhttp3/EventListener;->connectEnd(Lokhttp3/Call;Ljava/net/InetSocketAddress;Ljava/net/Proxy;Lokhttp3/Protocol;)V
:try_end_2
.catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0
:goto_4
iget-object v0, v7, Lokhttp3/internal/connection/RealConnection;->route:Lokhttp3/Route;
.line 238
invoke-virtual {v0}, Lokhttp3/Route;->requiresTunnel()Z
move-result v0
if-eqz v0, :cond_7
iget-object v0, v7, Lokhttp3/internal/connection/RealConnection;->rawSocket:Ljava/net/Socket;
if-eqz v0, :cond_6
goto :goto_5
.line 239
:cond_6
new-instance v0, Lokhttp3/internal/connection/RouteException;
new-instance v1, Ljava/net/ProtocolException;
const-string v2, "Too many tunnel connections attempted: 21"
invoke-direct {v1, v2}, Ljava/net/ProtocolException;-><init>(Ljava/lang/String;)V
check-cast v1, Ljava/io/IOException;
invoke-direct {v0, v1}, Lokhttp3/internal/connection/RouteException;-><init>(Ljava/io/IOException;)V
check-cast v0, Ljava/lang/Throwable;
throw v0
.line 243
:cond_7
:goto_5
invoke-static {}, Ljava/lang/System;->nanoTime()J
move-result-wide v0
iput-wide v0, v7, Lokhttp3/internal/connection/RealConnection;->idleAtNs:J
return-void
:catch_0
move-exception v0
goto :goto_7
:catch_1
move-exception v0
goto :goto_6
:catch_2
move-exception v0
move/from16 v14, p1
move/from16 v15, p2
:goto_6
move/from16 v6, p4
:goto_7
iget-object v1, v7, Lokhttp3/internal/connection/RealConnection;->socket:Ljava/net/Socket;
if-eqz v1, :cond_8
.line 213
invoke-static {v1}, Lokhttp3/internal/Util;->closeQuietly(Ljava/net/Socket;)V
:cond_8
iget-object v1, v7, Lokhttp3/internal/connection/RealConnection;->rawSocket:Ljava/net/Socket;
if-eqz v1, :cond_9
.line 214
invoke-static {v1}, Lokhttp3/internal/Util;->closeQuietly(Ljava/net/Socket;)V
.line 215
:cond_9
move-object v1, v11
check-cast v1, Ljava/net/Socket;
iput-object v11, v7, Lokhttp3/internal/connection/RealConnection;->socket:Ljava/net/Socket;
iput-object v11, v7, Lokhttp3/internal/connection/RealConnection;->rawSocket:Ljava/net/Socket;
.line 217
move-object v1, v11
check-cast v1, Lokio/BufferedSource;
iput-object v11, v7, Lokhttp3/internal/connection/RealConnection;->source:Lokio/BufferedSource;
.line 218
move-object v1, v11
check-cast v1, Lokio/BufferedSink;
iput-object v11, v7, Lokhttp3/internal/connection/RealConnection;->sink:Lokio/BufferedSink;
.line 219
move-object v1, v11
check-cast v1, Lokhttp3/Handshake;
iput-object v11, v7, Lokhttp3/internal/connection/RealConnection;->handshake:Lokhttp3/Handshake;
.line 220
move-object v1, v11
check-cast v1, Lokhttp3/Protocol;
iput-object v11, v7, Lokhttp3/internal/connection/RealConnection;->protocol:Lokhttp3/Protocol;
.line 221
move-object v1, v11
check-cast v1, Lokhttp3/internal/http2/Http2Connection;
iput-object v11, v7, Lokhttp3/internal/connection/RealConnection;->http2Connection:Lokhttp3/internal/http2/Http2Connection;
iput v10, v7, Lokhttp3/internal/connection/RealConnection;->allocationLimit:I
iget-object v1, v7, Lokhttp3/internal/connection/RealConnection;->route:Lokhttp3/Route;
.line 224
invoke-virtual {v1}, Lokhttp3/Route;->socketAddress()Ljava/net/InetSocketAddress;
move-result-object v3
iget-object v1, v7, Lokhttp3/internal/connection/RealConnection;->route:Lokhttp3/Route;
invoke-virtual {v1}, Lokhttp3/Route;->proxy()Ljava/net/Proxy;
move-result-object v4
const/4 v5, 0x0
move-object/from16 v1, p7
move-object/from16 v2, p6
move-object v6, v0
invoke-virtual/range {v1 .. v6}, Lokhttp3/EventListener;->connectFailed(Lokhttp3/Call;Ljava/net/InetSocketAddress;Ljava/net/Proxy;Lokhttp3/Protocol;Ljava/io/IOException;)V
if-nez v13, :cond_a
.line 227
new-instance v13, Lokhttp3/internal/connection/RouteException;
invoke-direct {v13, v0}, Lokhttp3/internal/connection/RouteException;-><init>(Ljava/io/IOException;)V
goto :goto_8
.line 229
:cond_a
invoke-virtual {v13, v0}, Lokhttp3/internal/connection/RouteException;->addConnectException(Ljava/io/IOException;)V
:goto_8
if-eqz p5, :cond_b
.line 232
invoke-virtual {v12, v0}, Lokhttp3/internal/connection/ConnectionSpecSelector;->connectionFailed(Ljava/io/IOException;)Z
move-result v0
if-eqz v0, :cond_b
goto/16 :goto_2
.line 233
:cond_b
check-cast v13, Ljava/lang/Throwable;
throw v13
.line 193
:cond_c
new-instance v0, Lokhttp3/internal/connection/RouteException;
new-instance v1, Ljava/net/UnknownServiceException;
const-string v2, "H2_PRIOR_KNOWLEDGE cannot be used with HTTPS"
invoke-direct {v1, v2}, Ljava/net/UnknownServiceException;-><init>(Ljava/lang/String;)V
check-cast v1, Ljava/io/IOException;
invoke-direct {v0, v1}, Lokhttp3/internal/connection/RouteException;-><init>(Ljava/io/IOException;)V
check-cast v0, Ljava/lang/Throwable;
throw v0
.line 175
:cond_d
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "already connected"
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
check-cast v0, Ljava/lang/Throwable;
throw v0
.end method
.method public final connectFailed$okhttp(Lokhttp3/OkHttpClient;Lokhttp3/Route;Ljava/io/IOException;)V
.locals 2
const-string p0, "client"
invoke-static {p1, p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string p0, "failedRoute"
invoke-static {p2, p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string p0, "failure"
invoke-static {p3, p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 689
invoke-virtual {p2}, Lokhttp3/Route;->proxy()Ljava/net/Proxy;
move-result-object p0
invoke-virtual {p0}, Ljava/net/Proxy;->type()Ljava/net/Proxy$Type;
move-result-object p0
sget-object v0, Ljava/net/Proxy$Type;->DIRECT:Ljava/net/Proxy$Type;
if-eq p0, v0, :cond_0
.line 690
invoke-virtual {p2}, Lokhttp3/Route;->address()Lokhttp3/Address;
move-result-object p0
.line 691
invoke-virtual {p0}, Lokhttp3/Address;->proxySelector()Ljava/net/ProxySelector;
move-result-object v0
.line 692
invoke-virtual {p0}, Lokhttp3/Address;->url()Lokhttp3/HttpUrl;
move-result-object p0
invoke-virtual {p0}, Lokhttp3/HttpUrl;->uri()Ljava/net/URI;
move-result-object p0
invoke-virtual {p2}, Lokhttp3/Route;->proxy()Ljava/net/Proxy;
move-result-object v1
invoke-virtual {v1}, Ljava/net/Proxy;->address()Ljava/net/SocketAddress;
move-result-object v1
.line 691
invoke-virtual {v0, p0, v1, p3}, Ljava/net/ProxySelector;->connectFailed(Ljava/net/URI;Ljava/net/SocketAddress;Ljava/io/IOException;)V
.line 695
:cond_0
invoke-virtual {p1}, Lokhttp3/OkHttpClient;->getRouteDatabase()Lokhttp3/internal/connection/RouteDatabase;
move-result-object p0
invoke-virtual {p0, p2}, Lokhttp3/internal/connection/RouteDatabase;->failed(Lokhttp3/Route;)V
return-void
.end method
.method public final getCalls()Ljava/util/List;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Ljava/lang/ref/Reference<",
"Lokhttp3/internal/connection/RealCall;",
">;>;"
}
.end annotation
iget-object p0, p0, Lokhttp3/internal/connection/RealConnection;->calls:Ljava/util/List;
return-object p0
.end method
.method public final getConnectionPool()Lokhttp3/internal/connection/RealConnectionPool;
.locals 0
iget-object p0, p0, Lokhttp3/internal/connection/RealConnection;->connectionPool:Lokhttp3/internal/connection/RealConnectionPool;
return-object p0
.end method
.method public final getIdleAtNs$okhttp()J
.locals 2
iget-wide v0, p0, Lokhttp3/internal/connection/RealConnection;->idleAtNs:J
return-wide v0
.end method
.method public final getNoNewExchanges()Z
.locals 0
iget-boolean p0, p0, Lokhttp3/internal/connection/RealConnection;->noNewExchanges:Z
return p0
.end method
.method public final getRouteFailureCount$okhttp()I
.locals 0
iget p0, p0, Lokhttp3/internal/connection/RealConnection;->routeFailureCount:I
return p0
.end method
.method public handshake()Lokhttp3/Handshake;
.locals 0
iget-object p0, p0, Lokhttp3/internal/connection/RealConnection;->handshake:Lokhttp3/Handshake;
return-object p0
.end method
.method public final declared-synchronized incrementSuccessCount$okhttp()V
.locals 1
monitor-enter p0
:try_start_0
iget v0, p0, Lokhttp3/internal/connection/RealConnection;->successCount:I
add-int/lit8 v0, v0, 0x1
iput v0, p0, Lokhttp3/internal/connection/RealConnection;->successCount:I
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 164
monitor-exit p0
return-void
:catchall_0
move-exception v0
monitor-exit p0
throw v0
.end method
.method public final isEligible$okhttp(Lokhttp3/Address;Ljava/util/List;)Z
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lokhttp3/Address;",
"Ljava/util/List<",
"Lokhttp3/Route;",
">;)Z"
}
.end annotation
const-string v0, "address"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 767
sget-boolean v0, Lokhttp3/internal/Util;->assertionsEnabled:Z
if-eqz v0, :cond_1
invoke-static {p0}, Ljava/lang/Thread;->holdsLock(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
goto :goto_0
.line 768
:cond_0
new-instance p1, Ljava/lang/AssertionError;
new-instance p2, Ljava/lang/StringBuilder;
const-string v0, "Thread "
invoke-direct {p2, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
move-result-object v0
const-string v1, "Thread.currentThread()"
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v0}, Ljava/lang/Thread;->getName()Ljava/lang/String;
move-result-object v0
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p2
const-string v0, " MUST hold lock on "
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p2
invoke-virtual {p2, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object p0
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {p1, p0}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
check-cast p1, Ljava/lang/Throwable;
throw p1
:cond_1
:goto_0
iget-object v0, p0, Lokhttp3/internal/connection/RealConnection;->calls:Ljava/util/List;
.line 532
invoke-interface {v0}, Ljava/util/List;->size()I
move-result v0
iget v1, p0, Lokhttp3/internal/connection/RealConnection;->allocationLimit:I
const/4 v2, 0x0
if-ge v0, v1, :cond_9
iget-boolean v0, p0, Lokhttp3/internal/connection/RealConnection;->noNewExchanges:Z
if-eqz v0, :cond_2
goto :goto_1
:cond_2
iget-object v0, p0, Lokhttp3/internal/connection/RealConnection;->route:Lokhttp3/Route;
.line 535
invoke-virtual {v0}, Lokhttp3/Route;->address()Lokhttp3/Address;
move-result-object v0
invoke-virtual {v0, p1}, Lokhttp3/Address;->equalsNonHost$okhttp(Lokhttp3/Address;)Z
move-result v0
if-nez v0, :cond_3
return v2
.line 538
:cond_3
invoke-virtual {p1}, Lokhttp3/Address;->url()Lokhttp3/HttpUrl;
move-result-object v0
invoke-virtual {v0}, Lokhttp3/HttpUrl;->host()Ljava/lang/String;
move-result-object v0
invoke-virtual {p0}, Lokhttp3/internal/connection/RealConnection;->route()Lokhttp3/Route;
move-result-object v1
invoke-virtual {v1}, Lokhttp3/Route;->address()Lokhttp3/Address;
move-result-object v1
invoke-virtual {v1}, Lokhttp3/Address;->url()Lokhttp3/HttpUrl;
move-result-object v1
invoke-virtual {v1}, Lokhttp3/HttpUrl;->host()Ljava/lang/String;
move-result-object v1
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
const/4 v1, 0x1
if-eqz v0, :cond_4
return v1
:cond_4
iget-object v0, p0, Lokhttp3/internal/connection/RealConnection;->http2Connection:Lokhttp3/internal/http2/Http2Connection;
if-nez v0, :cond_5
return v2
:cond_5
if-eqz p2, :cond_9
.line 551
invoke-direct {p0, p2}, Lokhttp3/internal/connection/RealConnection;->routeMatchesAny(Ljava/util/List;)Z
move-result p2
if-nez p2, :cond_6
goto :goto_1
.line 554
:cond_6
invoke-virtual {p1}, Lokhttp3/Address;->hostnameVerifier()Ljavax/net/ssl/HostnameVerifier;
move-result-object p2
sget-object v0, Lokhttp3/internal/tls/OkHostnameVerifier;->INSTANCE:Lokhttp3/internal/tls/OkHostnameVerifier;
if-eq p2, v0, :cond_7
return v2
.line 555
:cond_7
invoke-virtual {p1}, Lokhttp3/Address;->url()Lokhttp3/HttpUrl;
move-result-object p2
invoke-direct {p0, p2}, Lokhttp3/internal/connection/RealConnection;->supportsUrl(Lokhttp3/HttpUrl;)Z
move-result p2
if-nez p2, :cond_8
return v2
.line 559
:cond_8
:try_start_0
invoke-virtual {p1}, Lokhttp3/Address;->certificatePinner()Lokhttp3/CertificatePinner;
move-result-object p2
invoke-static {p2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
invoke-virtual {p1}, Lokhttp3/Address;->url()Lokhttp3/HttpUrl;
move-result-object p1
invoke-virtual {p1}, Lokhttp3/HttpUrl;->host()Ljava/lang/String;
move-result-object p1
invoke-virtual {p0}, Lokhttp3/internal/connection/RealConnection;->handshake()Lokhttp3/Handshake;
move-result-object p0
invoke-static {p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
invoke-virtual {p0}, Lokhttp3/Handshake;->peerCertificates()Ljava/util/List;
move-result-object p0
invoke-virtual {p2, p1, p0}, Lokhttp3/CertificatePinner;->check(Ljava/lang/String;Ljava/util/List;)V
:try_end_0
.catch Ljavax/net/ssl/SSLPeerUnverifiedException; {:try_start_0 .. :try_end_0} :catch_0
return v1
:catch_0
:cond_9
:goto_1
return v2
.end method
.method public final isHealthy(Z)Z
.locals 7
.line 778
sget-boolean v0, Lokhttp3/internal/Util;->assertionsEnabled:Z
if-eqz v0, :cond_1
invoke-static {p0}, Ljava/lang/Thread;->holdsLock(Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_0
goto :goto_0
.line 779
:cond_0
new-instance p1, Ljava/lang/AssertionError;
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "Thread "
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
move-result-object v1
const-string v2, "Thread.currentThread()"
invoke-static {v1, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v1}, Ljava/lang/Thread;->getName()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, " MUST NOT hold lock on "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object p0
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {p1, p0}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
check-cast p1, Ljava/lang/Throwable;
throw p1
.line 650
:cond_1
:goto_0
invoke-static {}, Ljava/lang/System;->nanoTime()J
move-result-wide v0
iget-object v2, p0, Lokhttp3/internal/connection/RealConnection;->rawSocket:Ljava/net/Socket;
.line 652
invoke-static {v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
iget-object v3, p0, Lokhttp3/internal/connection/RealConnection;->socket:Ljava/net/Socket;
.line 653
invoke-static {v3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
iget-object v4, p0, Lokhttp3/internal/connection/RealConnection;->source:Lokio/BufferedSource;
.line 654
invoke-static {v4}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
.line 656
invoke-virtual {v2}, Ljava/net/Socket;->isClosed()Z
move-result v2
if-nez v2, :cond_5
invoke-virtual {v3}, Ljava/net/Socket;->isClosed()Z
move-result v2
if-nez v2, :cond_5
invoke-virtual {v3}, Ljava/net/Socket;->isInputShutdown()Z
move-result v2
if-nez v2, :cond_5
invoke-virtual {v3}, Ljava/net/Socket;->isOutputShutdown()Z
move-result v2
if-eqz v2, :cond_2
goto :goto_1
:cond_2
iget-object v2, p0, Lokhttp3/internal/connection/RealConnection;->http2Connection:Lokhttp3/internal/http2/Http2Connection;
if-eqz v2, :cond_3
.line 662
invoke-virtual {v2, v0, v1}, Lokhttp3/internal/http2/Http2Connection;->isHealthy(J)Z
move-result p0
return p0
.line 665
:cond_3
monitor-enter p0
:try_start_0
iget-wide v5, p0, Lokhttp3/internal/connection/RealConnection;->idleAtNs:J
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
sub-long/2addr v0, v5
monitor-exit p0
const-wide v5, 0x2540be400L
cmp-long p0, v0, v5
if-ltz p0, :cond_4
if-eqz p1, :cond_4
.line 667
invoke-static {v3, v4}, Lokhttp3/internal/Util;->isHealthy(Ljava/net/Socket;Lokio/BufferedSource;)Z
move-result p0
return p0
:cond_4
const/4 p0, 0x1
return p0
:catchall_0
move-exception p1
.line 665
monitor-exit p0
throw p1
:cond_5
:goto_1
const/4 p0, 0x0
return p0
.end method
.method public final isMultiplexed$okhttp()Z
.locals 0
iget-object p0, p0, Lokhttp3/internal/connection/RealConnection;->http2Connection:Lokhttp3/internal/http2/Http2Connection;
if-eqz p0, :cond_0
const/4 p0, 0x1
goto :goto_0
:cond_0
const/4 p0, 0x0
:goto_0
return p0
.end method
.method public final newCodec$okhttp(Lokhttp3/OkHttpClient;Lokhttp3/internal/http/RealInterceptorChain;)Lokhttp3/internal/http/ExchangeCodec;
.locals 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/net/SocketException;
}
.end annotation
const-string v0, "client"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "chain"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v0, p0, Lokhttp3/internal/connection/RealConnection;->socket:Ljava/net/Socket;
.line 607
invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
iget-object v1, p0, Lokhttp3/internal/connection/RealConnection;->source:Lokio/BufferedSource;
.line 608
invoke-static {v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
iget-object v2, p0, Lokhttp3/internal/connection/RealConnection;->sink:Lokio/BufferedSink;
.line 609
invoke-static {v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
iget-object v3, p0, Lokhttp3/internal/connection/RealConnection;->http2Connection:Lokhttp3/internal/http2/Http2Connection;
if-eqz v3, :cond_0
.line 613
new-instance v0, Lokhttp3/internal/http2/Http2ExchangeCodec;
invoke-direct {v0, p1, p0, p2, v3}, Lokhttp3/internal/http2/Http2ExchangeCodec;-><init>(Lokhttp3/OkHttpClient;Lokhttp3/internal/connection/RealConnection;Lokhttp3/internal/http/RealInterceptorChain;Lokhttp3/internal/http2/Http2Connection;)V
check-cast v0, Lokhttp3/internal/http/ExchangeCodec;
goto :goto_0
.line 615
:cond_0
invoke-virtual {p2}, Lokhttp3/internal/http/RealInterceptorChain;->readTimeoutMillis()I
move-result v3
invoke-virtual {v0, v3}, Ljava/net/Socket;->setSoTimeout(I)V
.line 616
invoke-interface {v1}, Lokio/BufferedSource;->timeout()Lokio/Timeout;
move-result-object v0
invoke-virtual {p2}, Lokhttp3/internal/http/RealInterceptorChain;->getReadTimeoutMillis$okhttp()I
move-result v3
int-to-long v3, v3
sget-object v5, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invoke-virtual {v0, v3, v4, v5}, Lokio/Timeout;->timeout(JLjava/util/concurrent/TimeUnit;)Lokio/Timeout;
.line 617
invoke-interface {v2}, Lokio/BufferedSink;->timeout()Lokio/Timeout;
move-result-object v0
invoke-virtual {p2}, Lokhttp3/internal/http/RealInterceptorChain;->getWriteTimeoutMillis$okhttp()I
move-result p2
int-to-long v3, p2
sget-object p2, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invoke-virtual {v0, v3, v4, p2}, Lokio/Timeout;->timeout(JLjava/util/concurrent/TimeUnit;)Lokio/Timeout;
.line 618
new-instance p2, Lokhttp3/internal/http1/Http1ExchangeCodec;
invoke-direct {p2, p1, p0, v1, v2}, Lokhttp3/internal/http1/Http1ExchangeCodec;-><init>(Lokhttp3/OkHttpClient;Lokhttp3/internal/connection/RealConnection;Lokio/BufferedSource;Lokio/BufferedSink;)V
move-object v0, p2
check-cast v0, Lokhttp3/internal/http/ExchangeCodec;
:goto_0
return-object v0
.end method
.method public final newWebSocketStreams$okhttp(Lokhttp3/internal/connection/Exchange;)Lokhttp3/internal/ws/RealWebSocket$Streams;
.locals 8
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/net/SocketException;
}
.end annotation
const-string v0, "exchange"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v0, p0, Lokhttp3/internal/connection/RealConnection;->socket:Ljava/net/Socket;
.line 624
invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
iget-object v6, p0, Lokhttp3/internal/connection/RealConnection;->source:Lokio/BufferedSource;
.line 625
invoke-static {v6}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
iget-object v7, p0, Lokhttp3/internal/connection/RealConnection;->sink:Lokio/BufferedSink;
.line 626
invoke-static {v7}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
const/4 v1, 0x0
.line 628
invoke-virtual {v0, v1}, Ljava/net/Socket;->setSoTimeout(I)V
.line 629
invoke-virtual {p0}, Lokhttp3/internal/connection/RealConnection;->noNewExchanges$okhttp()V
.line 630
new-instance p0, Lokhttp3/internal/connection/RealConnection$newWebSocketStreams$1;
const/4 v5, 0x1
move-object v1, p0
move-object v2, p1
move-object v3, v6
move-object v4, v7
invoke-direct/range {v1 .. v7}, Lokhttp3/internal/connection/RealConnection$newWebSocketStreams$1;-><init>(Lokhttp3/internal/connection/Exchange;Lokio/BufferedSource;Lokio/BufferedSink;ZLokio/BufferedSource;Lokio/BufferedSink;)V
check-cast p0, Lokhttp3/internal/ws/RealWebSocket$Streams;
return-object p0
.end method
.method public final declared-synchronized noCoalescedConnections$okhttp()V
.locals 1
monitor-enter p0
const/4 v0, 0x1
:try_start_0
iput-boolean v0, p0, Lokhttp3/internal/connection/RealConnection;->noCoalescedConnections:Z
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 160
monitor-exit p0
return-void
:catchall_0
move-exception v0
monitor-exit p0
throw v0
.end method
.method public final declared-synchronized noNewExchanges$okhttp()V
.locals 1
monitor-enter p0
const/4 v0, 0x1
:try_start_0
iput-boolean v0, p0, Lokhttp3/internal/connection/RealConnection;->noNewExchanges:Z
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 155
monitor-exit p0
return-void
:catchall_0
move-exception v0
monitor-exit p0
throw v0
.end method
.method public declared-synchronized onSettings(Lokhttp3/internal/http2/Http2Connection;Lokhttp3/internal/http2/Settings;)V
.locals 1
monitor-enter p0
:try_start_0
const-string v0, "connection"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string p1, "settings"
invoke-static {p2, p1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 681
invoke-virtual {p2}, Lokhttp3/internal/http2/Settings;->getMaxConcurrentStreams()I
move-result p1
iput p1, p0, Lokhttp3/internal/connection/RealConnection;->allocationLimit:I
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 682
monitor-exit p0
return-void
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method
.method public onStream(Lokhttp3/internal/http2/Http2Stream;)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-string p0, "stream"
invoke-static {p1, p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 676
sget-object p0, Lokhttp3/internal/http2/ErrorCode;->REFUSED_STREAM:Lokhttp3/internal/http2/ErrorCode;
const/4 v0, 0x0
invoke-virtual {p1, p0, v0}, Lokhttp3/internal/http2/Http2Stream;->close(Lokhttp3/internal/http2/ErrorCode;Ljava/io/IOException;)V
return-void
.end method
.method public protocol()Lokhttp3/Protocol;
.locals 0
iget-object p0, p0, Lokhttp3/internal/connection/RealConnection;->protocol:Lokhttp3/Protocol;
.line 737
invoke-static {p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
return-object p0
.end method
.method public route()Lokhttp3/Route;
.locals 0
iget-object p0, p0, Lokhttp3/internal/connection/RealConnection;->route:Lokhttp3/Route;
return-object p0
.end method
.method public final setIdleAtNs$okhttp(J)V
.locals 0
iput-wide p1, p0, Lokhttp3/internal/connection/RealConnection;->idleAtNs:J
return-void
.end method
.method public final setNoNewExchanges(Z)V
.locals 0
iput-boolean p1, p0, Lokhttp3/internal/connection/RealConnection;->noNewExchanges:Z
return-void
.end method
.method public final setRouteFailureCount$okhttp(I)V
.locals 0
iput p1, p0, Lokhttp3/internal/connection/RealConnection;->routeFailureCount:I
return-void
.end method
.method public socket()Ljava/net/Socket;
.locals 0
iget-object p0, p0, Lokhttp3/internal/connection/RealConnection;->socket:Ljava/net/Socket;
.line 644
invoke-static {p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
return-object p0
.end method
.method public toString()Ljava/lang/String;
.locals 2
.line 740
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "Connection{"
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
iget-object v1, p0, Lokhttp3/internal/connection/RealConnection;->route:Lokhttp3/Route;
invoke-virtual {v1}, Lokhttp3/Route;->address()Lokhttp3/Address;
move-result-object v1
invoke-virtual {v1}, Lokhttp3/Address;->url()Lokhttp3/HttpUrl;
move-result-object v1
invoke-virtual {v1}, Lokhttp3/HttpUrl;->host()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
const/16 v1, 0x3a
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
move-result-object v0
iget-object v1, p0, Lokhttp3/internal/connection/RealConnection;->route:Lokhttp3/Route;
invoke-virtual {v1}, Lokhttp3/Route;->address()Lokhttp3/Address;
move-result-object v1
invoke-virtual {v1}, Lokhttp3/Address;->url()Lokhttp3/HttpUrl;
move-result-object v1
invoke-virtual {v1}, Lokhttp3/HttpUrl;->port()I
move-result v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, ", proxy="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget-object v1, p0, Lokhttp3/internal/connection/RealConnection;->route:Lokhttp3/Route;
.line 741
invoke-virtual {v1}, Lokhttp3/Route;->proxy()Ljava/net/Proxy;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, " hostAddress="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget-object v1, p0, Lokhttp3/internal/connection/RealConnection;->route:Lokhttp3/Route;
.line 742
invoke-virtual {v1}, Lokhttp3/Route;->socketAddress()Ljava/net/InetSocketAddress;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, " cipherSuite="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget-object v1, p0, Lokhttp3/internal/connection/RealConnection;->handshake:Lokhttp3/Handshake;
if-eqz v1, :cond_0
.line 743
invoke-virtual {v1}, Lokhttp3/Handshake;->cipherSuite()Lokhttp3/CipherSuite;
move-result-object v1
if-eqz v1, :cond_0
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;
move-result-object v0
const-string v1, " protocol="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget-object p0, p0, Lokhttp3/internal/connection/RealConnection;->protocol:Lokhttp3/Protocol;
.line 744
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object p0
const/16 v0, 0x7d
invoke-virtual {p0, v0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
move-result-object p0
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method public final declared-synchronized trackFailure$okhttp(Lokhttp3/internal/connection/RealCall;Ljava/io/IOException;)V
.locals 3
monitor-enter p0
:try_start_0
const-string v0, "call"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 703
instance-of v0, p2, Lokhttp3/internal/http2/StreamResetException;
const/4 v1, 0x1
if-eqz v0, :cond_2
.line 705
move-object v0, p2
check-cast v0, Lokhttp3/internal/http2/StreamResetException;
iget-object v0, v0, Lokhttp3/internal/http2/StreamResetException;->errorCode:Lokhttp3/internal/http2/ErrorCode;
sget-object v2, Lokhttp3/internal/http2/ErrorCode;->REFUSED_STREAM:Lokhttp3/internal/http2/ErrorCode;
if-ne v0, v2, :cond_0
iget p1, p0, Lokhttp3/internal/connection/RealConnection;->refusedStreamCount:I
add-int/2addr p1, v1
iput p1, p0, Lokhttp3/internal/connection/RealConnection;->refusedStreamCount:I
if-le p1, v1, :cond_5
iput-boolean v1, p0, Lokhttp3/internal/connection/RealConnection;->noNewExchanges:Z
iget p1, p0, Lokhttp3/internal/connection/RealConnection;->routeFailureCount:I
add-int/2addr p1, v1
iput p1, p0, Lokhttp3/internal/connection/RealConnection;->routeFailureCount:I
goto :goto_0
.line 714
:cond_0
check-cast p2, Lokhttp3/internal/http2/StreamResetException;
iget-object p2, p2, Lokhttp3/internal/http2/StreamResetException;->errorCode:Lokhttp3/internal/http2/ErrorCode;
sget-object v0, Lokhttp3/internal/http2/ErrorCode;->CANCEL:Lokhttp3/internal/http2/ErrorCode;
if-ne p2, v0, :cond_1
invoke-virtual {p1}, Lokhttp3/internal/connection/RealCall;->isCanceled()Z
move-result p1
if-eqz p1, :cond_1
goto :goto_0
:cond_1
iput-boolean v1, p0, Lokhttp3/internal/connection/RealConnection;->noNewExchanges:Z
iget p1, p0, Lokhttp3/internal/connection/RealConnection;->routeFailureCount:I
add-int/2addr p1, v1
iput p1, p0, Lokhttp3/internal/connection/RealConnection;->routeFailureCount:I
goto :goto_0
.line 724
:cond_2
invoke-virtual {p0}, Lokhttp3/internal/connection/RealConnection;->isMultiplexed$okhttp()Z
move-result v0
if-eqz v0, :cond_3
instance-of v0, p2, Lokhttp3/internal/http2/ConnectionShutdownException;
if-eqz v0, :cond_5
:cond_3
iput-boolean v1, p0, Lokhttp3/internal/connection/RealConnection;->noNewExchanges:Z
iget v0, p0, Lokhttp3/internal/connection/RealConnection;->successCount:I
if-nez v0, :cond_5
if-eqz p2, :cond_4
.line 730
invoke-virtual {p1}, Lokhttp3/internal/connection/RealCall;->getClient()Lokhttp3/OkHttpClient;
move-result-object p1
iget-object v0, p0, Lokhttp3/internal/connection/RealConnection;->route:Lokhttp3/Route;
invoke-virtual {p0, p1, v0, p2}, Lokhttp3/internal/connection/RealConnection;->connectFailed$okhttp(Lokhttp3/OkHttpClient;Lokhttp3/Route;Ljava/io/IOException;)V
:cond_4
iget p1, p0, Lokhttp3/internal/connection/RealConnection;->routeFailureCount:I
add-int/2addr p1, v1
iput p1, p0, Lokhttp3/internal/connection/RealConnection;->routeFailureCount:I
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 735
:cond_5
:goto_0
monitor-exit p0
return-void
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method