mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
2324 lines
64 KiB
Smali
2324 lines
64 KiB
Smali
.class public final Lokhttp3/internal/connection/RealCall;
|
|
.super Ljava/lang/Object;
|
|
.source "RealCall.kt"
|
|
|
|
# interfaces
|
|
.implements Lokhttp3/Call;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lokhttp3/internal/connection/RealCall$AsyncCall;,
|
|
Lokhttp3/internal/connection/RealCall$CallReference;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/SourceDebugExtension;
|
|
value = "SMAP\nRealCall.kt\nKotlin\n*S Kotlin\n*F\n+ 1 RealCall.kt\nokhttp3/internal/connection/RealCall\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,551:1\n1#2:552\n601#3,4:553\n608#3,4:557\n608#3,4:561\n601#3,4:565\n318#4,7:569\n*E\n*S KotlinDebug\n*F\n+ 1 RealCall.kt\nokhttp3/internal/connection/RealCall\n*L\n269#1,4:553\n344#1,4:557\n348#1,4:561\n375#1,4:565\n378#1,7:569\n*E\n"
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/Metadata;
|
|
bv = {
|
|
0x1,
|
|
0x0,
|
|
0x3
|
|
}
|
|
d1 = {
|
|
"\u0000\u00a7\u0001\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\u0008\u0002\n\u0002\u0010\u0000\n\u0002\u0008\u0004\n\u0002\u0018\u0002\n\u0002\u0008\u0004\n\u0002\u0018\u0002\n\u0002\u0008\u0005\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u000b\n\u0002\u0008\u0004\n\u0002\u0010\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0006\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0004\n\u0002\u0018\u0002\n\u0002\u0008\u0007\n\u0002\u0018\u0002\n\u0002\u0008\u000b\n\u0002\u0010\u000e\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0006*\u0001.\u0018\u00002\u00020\u0001:\u0002deB\u001d\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u0006\u0010\u0006\u001a\u00020\u0007\u00a2\u0006\u0002\u0010\u0008J\u000e\u00101\u001a\u0002022\u0006\u0010\u0010\u001a\u00020\u000fJ!\u00103\u001a\u0002H4\"\n\u0008\u0000\u00104*\u0004\u0018\u0001052\u0006\u00106\u001a\u0002H4H\u0002\u00a2\u0006\u0002\u00107J\u0008\u00108\u001a\u000202H\u0002J\u0008\u00109\u001a\u000202H\u0016J\u0008\u0010:\u001a\u00020\u0000H\u0016J\u0010\u0010;\u001a\u00020<2\u0006\u0010=\u001a\u00020>H\u0002J\u0010\u0010?\u001a\u0002022\u0006\u0010@\u001a\u00020AH\u0016J\u0016\u0010B\u001a\u0002022\u0006\u0010C\u001a\u00020\u00052\u0006\u0010D\u001a\u00020\u0007J\u0008\u0010E\u001a\u00020FH\u0016J\u0015\u0010G\u001a\u0002022\u0006\u0010H\u001a\u00020\u0007H\u0000\u00a2\u0006\u0002\u0008IJ\r\u0010J\u001a\u00020FH\u0000\u00a2\u0006\u0002\u0008KJ\u0015\u0010L\u001a\u00020\u001e2\u0006\u0010M\u001a\u00020NH\u0000\u00a2\u0006\u0002\u0008OJ\u0008\u0010P\u001a\u00020\u0007H\u0016J\u0008\u0010Q\u001a\u00020\u0007H\u0016J;\u0010R\u001a\u0002H4\"\n\u0008\u0000\u00104*\u0004\u0018\u0001052\u0006\u0010\u001d\u001a\u00020\u001e2\u0006\u0010S\u001a\u00020\u00072\u0006\u0010T\u001a\u00020\u00072\u0006\u00106\u001a\u0002H4H\u0000\u00a2\u0006\u0004\u0008U\u0010VJ\u0019\u0010W\u001a\u0004\u0018\u0001052\u0008\u00106\u001a\u0004\u0018\u000105H\u0000\u00a2\u0006\u0002\u0008XJ\r\u0010Y\u001a\u00020ZH\u0000\u00a2\u0006\u0002\u0008[J\u000f\u0010\\\u001a\u0004\u0018\u00010]H\u0000\u00a2\u0006\u0002\u0008^J\u0008\u0010C\u001a\u00020\u0005H\u0016J\u0006\u0010_\u001a\u00020\u0007J\u0008\u0010-\u001a\u00020`H\u0016J\u0006\u00100\u001a\u000202J!\u0010a\u001a\u0002H4\"\n\u0008\u0000\u00104*\u0004\u0018\u0001052\u0006\u0010b\u001a\u0002H4H\u0002\u00a2\u0006\u0002\u00107J\u0008\u0010c\u001a\u00020ZH\u0002R\u0010\u0010\t\u001a\u0004\u0018\u00010\nX\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u000b\u001a\u00020\u0007X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u0011\u0010\u0002\u001a\u00020\u0003\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u000c\u0010\rR\"\u0010\u0010\u001a\u0004\u0018\u00010\u000f2\u0008\u0010\u000e\u001a\u0004\u0018\u00010\u000f@BX\u0086\u000e\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u0011\u0010\u0012R\u000e\u0010\u0013\u001a\u00020\u0014X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u001c\u0010\u0015\u001a\u0004\u0018\u00010\u000fX\u0086\u000e\u00a2\u0006\u000e\n\u0000\u001a\u0004\u0008\u0016\u0010\u0012\"\u0004\u0008\u0017\u0010\u0018R\u0014\u0010\u0019\u001a\u00020\u001aX\u0080\u0004\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u001b\u0010\u001cR\u0010\u0010\u001d\u001a\u0004\u0018\u00010\u001eX\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u0010\u0010\u001f\u001a\u0004\u0018\u00010 X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u000e\u0010!\u001a\u00020\"X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u000e\u0010#\u001a\u00020\u0007X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u0011\u0010\u0006\u001a\u00020\u0007\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008$\u0010%R\"\u0010&\u001a\u0004\u0018\u00010\u001e2\u0008\u0010\u000e\u001a\u0004\u0018\u00010\u001e@BX\u0080\u000e\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\'\u0010(R\u0011\u0010\u0004\u001a\u00020\u0005\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008)\u0010*R\u000e\u0010+\u001a\u00020\u0007X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u000e\u0010,\u001a\u00020\u0007X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u0010\u0010-\u001a\u00020.X\u0082\u0004\u00a2\u0006\u0004\n\u0002\u0010/R\u000e\u00100\u001a\u00020\u0007X\u0082\u000e\u00a2\u0006\u0002\n\u0000\u00a8\u0006f"
|
|
}
|
|
d2 = {
|
|
"Lokhttp3/internal/connection/RealCall;",
|
|
"Lokhttp3/Call;",
|
|
"client",
|
|
"Lokhttp3/OkHttpClient;",
|
|
"originalRequest",
|
|
"Lokhttp3/Request;",
|
|
"forWebSocket",
|
|
"",
|
|
"(Lokhttp3/OkHttpClient;Lokhttp3/Request;Z)V",
|
|
"callStackTrace",
|
|
"",
|
|
"canceled",
|
|
"getClient",
|
|
"()Lokhttp3/OkHttpClient;",
|
|
"<set-?>",
|
|
"Lokhttp3/internal/connection/RealConnection;",
|
|
"connection",
|
|
"getConnection",
|
|
"()Lokhttp3/internal/connection/RealConnection;",
|
|
"connectionPool",
|
|
"Lokhttp3/internal/connection/RealConnectionPool;",
|
|
"connectionToCancel",
|
|
"getConnectionToCancel",
|
|
"setConnectionToCancel",
|
|
"(Lokhttp3/internal/connection/RealConnection;)V",
|
|
"eventListener",
|
|
"Lokhttp3/EventListener;",
|
|
"getEventListener$okhttp",
|
|
"()Lokhttp3/EventListener;",
|
|
"exchange",
|
|
"Lokhttp3/internal/connection/Exchange;",
|
|
"exchangeFinder",
|
|
"Lokhttp3/internal/connection/ExchangeFinder;",
|
|
"executed",
|
|
"Ljava/util/concurrent/atomic/AtomicBoolean;",
|
|
"expectMoreExchanges",
|
|
"getForWebSocket",
|
|
"()Z",
|
|
"interceptorScopedExchange",
|
|
"getInterceptorScopedExchange$okhttp",
|
|
"()Lokhttp3/internal/connection/Exchange;",
|
|
"getOriginalRequest",
|
|
"()Lokhttp3/Request;",
|
|
"requestBodyOpen",
|
|
"responseBodyOpen",
|
|
"timeout",
|
|
"okhttp3/internal/connection/RealCall$timeout$1",
|
|
"Lokhttp3/internal/connection/RealCall$timeout$1;",
|
|
"timeoutEarlyExit",
|
|
"acquireConnectionNoEvents",
|
|
"",
|
|
"callDone",
|
|
"E",
|
|
"Ljava/io/IOException;",
|
|
"e",
|
|
"(Ljava/io/IOException;)Ljava/io/IOException;",
|
|
"callStart",
|
|
"cancel",
|
|
"clone",
|
|
"createAddress",
|
|
"Lokhttp3/Address;",
|
|
"url",
|
|
"Lokhttp3/HttpUrl;",
|
|
"enqueue",
|
|
"responseCallback",
|
|
"Lokhttp3/Callback;",
|
|
"enterNetworkInterceptorExchange",
|
|
"request",
|
|
"newExchangeFinder",
|
|
"execute",
|
|
"Lokhttp3/Response;",
|
|
"exitNetworkInterceptorExchange",
|
|
"closeExchange",
|
|
"exitNetworkInterceptorExchange$okhttp",
|
|
"getResponseWithInterceptorChain",
|
|
"getResponseWithInterceptorChain$okhttp",
|
|
"initExchange",
|
|
"chain",
|
|
"Lokhttp3/internal/http/RealInterceptorChain;",
|
|
"initExchange$okhttp",
|
|
"isCanceled",
|
|
"isExecuted",
|
|
"messageDone",
|
|
"requestDone",
|
|
"responseDone",
|
|
"messageDone$okhttp",
|
|
"(Lokhttp3/internal/connection/Exchange;ZZLjava/io/IOException;)Ljava/io/IOException;",
|
|
"noMoreExchanges",
|
|
"noMoreExchanges$okhttp",
|
|
"redactedUrl",
|
|
"",
|
|
"redactedUrl$okhttp",
|
|
"releaseConnectionNoEvents",
|
|
"Ljava/net/Socket;",
|
|
"releaseConnectionNoEvents$okhttp",
|
|
"retryAfterFailure",
|
|
"Lokio/AsyncTimeout;",
|
|
"timeoutExit",
|
|
"cause",
|
|
"toLoggableString",
|
|
"AsyncCall",
|
|
"CallReference",
|
|
"okhttp"
|
|
}
|
|
k = 0x1
|
|
mv = {
|
|
0x1,
|
|
0x4,
|
|
0x0
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private callStackTrace:Ljava/lang/Object;
|
|
|
|
.field private volatile canceled:Z
|
|
|
|
.field private final client:Lokhttp3/OkHttpClient;
|
|
|
|
.field private connection:Lokhttp3/internal/connection/RealConnection;
|
|
|
|
.field private final connectionPool:Lokhttp3/internal/connection/RealConnectionPool;
|
|
|
|
.field private volatile connectionToCancel:Lokhttp3/internal/connection/RealConnection;
|
|
|
|
.field private final eventListener:Lokhttp3/EventListener;
|
|
|
|
.field private volatile exchange:Lokhttp3/internal/connection/Exchange;
|
|
|
|
.field private exchangeFinder:Lokhttp3/internal/connection/ExchangeFinder;
|
|
|
|
.field private final executed:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
.field private expectMoreExchanges:Z
|
|
|
|
.field private final forWebSocket:Z
|
|
|
|
.field private interceptorScopedExchange:Lokhttp3/internal/connection/Exchange;
|
|
|
|
.field private final originalRequest:Lokhttp3/Request;
|
|
|
|
.field private requestBodyOpen:Z
|
|
|
|
.field private responseBodyOpen:Z
|
|
|
|
.field private final timeout:Lokhttp3/internal/connection/RealCall$timeout$1;
|
|
|
|
.field private timeoutEarlyExit:Z
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lokhttp3/OkHttpClient;Lokhttp3/Request;Z)V
|
|
.locals 2
|
|
|
|
const-string v0, "client"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "originalRequest"
|
|
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 60
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p1, p0, Lokhttp3/internal/connection/RealCall;->client:Lokhttp3/OkHttpClient;
|
|
|
|
iput-object p2, p0, Lokhttp3/internal/connection/RealCall;->originalRequest:Lokhttp3/Request;
|
|
|
|
iput-boolean p3, p0, Lokhttp3/internal/connection/RealCall;->forWebSocket:Z
|
|
|
|
.line 66
|
|
invoke-virtual {p1}, Lokhttp3/OkHttpClient;->connectionPool()Lokhttp3/ConnectionPool;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p2}, Lokhttp3/ConnectionPool;->getDelegate$okhttp()Lokhttp3/internal/connection/RealConnectionPool;
|
|
|
|
move-result-object p2
|
|
|
|
iput-object p2, p0, Lokhttp3/internal/connection/RealCall;->connectionPool:Lokhttp3/internal/connection/RealConnectionPool;
|
|
|
|
.line 68
|
|
invoke-virtual {p1}, Lokhttp3/OkHttpClient;->eventListenerFactory()Lokhttp3/EventListener$Factory;
|
|
|
|
move-result-object p2
|
|
|
|
move-object p3, p0
|
|
|
|
check-cast p3, Lokhttp3/Call;
|
|
|
|
invoke-interface {p2, p3}, Lokhttp3/EventListener$Factory;->create(Lokhttp3/Call;)Lokhttp3/EventListener;
|
|
|
|
move-result-object p2
|
|
|
|
iput-object p2, p0, Lokhttp3/internal/connection/RealCall;->eventListener:Lokhttp3/EventListener;
|
|
|
|
.line 70
|
|
new-instance p2, Lokhttp3/internal/connection/RealCall$timeout$1;
|
|
|
|
invoke-direct {p2, p0}, Lokhttp3/internal/connection/RealCall$timeout$1;-><init>(Lokhttp3/internal/connection/RealCall;)V
|
|
|
|
.line 75
|
|
invoke-virtual {p1}, Lokhttp3/OkHttpClient;->callTimeoutMillis()I
|
|
|
|
move-result p1
|
|
|
|
int-to-long v0, p1
|
|
|
|
sget-object p1, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
|
|
|
|
invoke-virtual {p2, v0, v1, p1}, Lokhttp3/internal/connection/RealCall$timeout$1;->timeout(JLjava/util/concurrent/TimeUnit;)Lokio/Timeout;
|
|
|
|
.line 76
|
|
sget-object p1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
|
|
|
|
iput-object p2, p0, Lokhttp3/internal/connection/RealCall;->timeout:Lokhttp3/internal/connection/RealCall$timeout$1;
|
|
|
|
.line 78
|
|
new-instance p1, Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
invoke-direct {p1}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>()V
|
|
|
|
iput-object p1, p0, Lokhttp3/internal/connection/RealCall;->executed:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
const/4 p1, 0x1
|
|
|
|
iput-boolean p1, p0, Lokhttp3/internal/connection/RealCall;->expectMoreExchanges:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final synthetic access$getTimeout$p(Lokhttp3/internal/connection/RealCall;)Lokhttp3/internal/connection/RealCall$timeout$1;
|
|
.locals 0
|
|
|
|
.line 60
|
|
iget-object p0, p0, Lokhttp3/internal/connection/RealCall;->timeout:Lokhttp3/internal/connection/RealCall$timeout$1;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final synthetic access$toLoggableString(Lokhttp3/internal/connection/RealCall;)Ljava/lang/String;
|
|
.locals 0
|
|
|
|
.line 60
|
|
invoke-direct {p0}, Lokhttp3/internal/connection/RealCall;->toLoggableString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private final callDone(Ljava/io/IOException;)Ljava/io/IOException;
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<E:",
|
|
"Ljava/io/IOException;",
|
|
">(TE;)TE;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 557
|
|
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 558
|
|
: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
|
|
|
|
:cond_1
|
|
:goto_0
|
|
iget-object v0, p0, Lokhttp3/internal/connection/RealCall;->connection:Lokhttp3/internal/connection/RealConnection;
|
|
|
|
if-eqz v0, :cond_8
|
|
|
|
.line 561
|
|
sget-boolean v1, Lokhttp3/internal/Util;->assertionsEnabled:Z
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
invoke-static {v0}, Ljava/lang/Thread;->holdsLock(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_2
|
|
|
|
goto :goto_1
|
|
|
|
.line 562
|
|
:cond_2
|
|
new-instance p0, Ljava/lang/AssertionError;
|
|
|
|
new-instance p1, Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, "Thread "
|
|
|
|
invoke-direct {p1, 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 {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v1, " MUST NOT hold lock on "
|
|
|
|
invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)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/lang/AssertionError;-><init>(Ljava/lang/Object;)V
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
throw p0
|
|
|
|
.line 349
|
|
:cond_3
|
|
:goto_1
|
|
monitor-enter v0
|
|
|
|
.line 350
|
|
:try_start_0
|
|
invoke-virtual {p0}, Lokhttp3/internal/connection/RealCall;->releaseConnectionNoEvents$okhttp()Ljava/net/Socket;
|
|
|
|
move-result-object v1
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 349
|
|
monitor-exit v0
|
|
|
|
iget-object v2, p0, Lokhttp3/internal/connection/RealCall;->connection:Lokhttp3/internal/connection/RealConnection;
|
|
|
|
if-nez v2, :cond_5
|
|
|
|
if-eqz v1, :cond_4
|
|
|
|
.line 353
|
|
invoke-static {v1}, Lokhttp3/internal/Util;->closeQuietly(Ljava/net/Socket;)V
|
|
|
|
:cond_4
|
|
iget-object v1, p0, Lokhttp3/internal/connection/RealCall;->eventListener:Lokhttp3/EventListener;
|
|
|
|
.line 354
|
|
move-object v2, p0
|
|
|
|
check-cast v2, Lokhttp3/Call;
|
|
|
|
check-cast v0, Lokhttp3/Connection;
|
|
|
|
invoke-virtual {v1, v2, v0}, Lokhttp3/EventListener;->connectionReleased(Lokhttp3/Call;Lokhttp3/Connection;)V
|
|
|
|
goto :goto_3
|
|
|
|
:cond_5
|
|
if-nez v1, :cond_6
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_6
|
|
const/4 v0, 0x0
|
|
|
|
:goto_2
|
|
if-eqz v0, :cond_7
|
|
|
|
goto :goto_3
|
|
|
|
:cond_7
|
|
const-string p0, "Check failed."
|
|
|
|
.line 356
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {p1, p0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast p1, Ljava/lang/Throwable;
|
|
|
|
throw p1
|
|
|
|
:catchall_0
|
|
move-exception p0
|
|
|
|
.line 349
|
|
monitor-exit v0
|
|
|
|
throw p0
|
|
|
|
.line 360
|
|
:cond_8
|
|
:goto_3
|
|
invoke-direct {p0, p1}, Lokhttp3/internal/connection/RealCall;->timeoutExit(Ljava/io/IOException;)Ljava/io/IOException;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz p1, :cond_9
|
|
|
|
iget-object p1, p0, Lokhttp3/internal/connection/RealCall;->eventListener:Lokhttp3/EventListener;
|
|
|
|
.line 362
|
|
check-cast p0, Lokhttp3/Call;
|
|
|
|
invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
invoke-virtual {p1, p0, v0}, Lokhttp3/EventListener;->callFailed(Lokhttp3/Call;Ljava/io/IOException;)V
|
|
|
|
goto :goto_4
|
|
|
|
:cond_9
|
|
iget-object p1, p0, Lokhttp3/internal/connection/RealCall;->eventListener:Lokhttp3/EventListener;
|
|
|
|
.line 364
|
|
check-cast p0, Lokhttp3/Call;
|
|
|
|
invoke-virtual {p1, p0}, Lokhttp3/EventListener;->callEnd(Lokhttp3/Call;)V
|
|
|
|
:goto_4
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private final callStart()V
|
|
.locals 2
|
|
|
|
.line 170
|
|
sget-object v0, Lokhttp3/internal/platform/Platform;->Companion:Lokhttp3/internal/platform/Platform$Companion;
|
|
|
|
invoke-virtual {v0}, Lokhttp3/internal/platform/Platform$Companion;->get()Lokhttp3/internal/platform/Platform;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "response.body().close()"
|
|
|
|
invoke-virtual {v0, v1}, Lokhttp3/internal/platform/Platform;->getStackTraceForCloseable(Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lokhttp3/internal/connection/RealCall;->callStackTrace:Ljava/lang/Object;
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/connection/RealCall;->eventListener:Lokhttp3/EventListener;
|
|
|
|
.line 171
|
|
check-cast p0, Lokhttp3/Call;
|
|
|
|
invoke-virtual {v0, p0}, Lokhttp3/EventListener;->callStart(Lokhttp3/Call;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private final createAddress(Lokhttp3/HttpUrl;)Lokhttp3/Address;
|
|
.locals 17
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 431
|
|
move-object v2, v1
|
|
|
|
check-cast v2, Ljavax/net/ssl/SSLSocketFactory;
|
|
|
|
.line 432
|
|
move-object v2, v1
|
|
|
|
check-cast v2, Ljavax/net/ssl/HostnameVerifier;
|
|
|
|
.line 433
|
|
move-object v2, v1
|
|
|
|
check-cast v2, Lokhttp3/CertificatePinner;
|
|
|
|
.line 434
|
|
invoke-virtual/range {p1 .. p1}, Lokhttp3/HttpUrl;->isHttps()Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
iget-object v1, v0, Lokhttp3/internal/connection/RealCall;->client:Lokhttp3/OkHttpClient;
|
|
|
|
.line 435
|
|
invoke-virtual {v1}, Lokhttp3/OkHttpClient;->sslSocketFactory()Ljavax/net/ssl/SSLSocketFactory;
|
|
|
|
move-result-object v1
|
|
|
|
iget-object v2, v0, Lokhttp3/internal/connection/RealCall;->client:Lokhttp3/OkHttpClient;
|
|
|
|
.line 436
|
|
invoke-virtual {v2}, Lokhttp3/OkHttpClient;->hostnameVerifier()Ljavax/net/ssl/HostnameVerifier;
|
|
|
|
move-result-object v2
|
|
|
|
iget-object v3, v0, Lokhttp3/internal/connection/RealCall;->client:Lokhttp3/OkHttpClient;
|
|
|
|
.line 437
|
|
invoke-virtual {v3}, Lokhttp3/OkHttpClient;->certificatePinner()Lokhttp3/CertificatePinner;
|
|
|
|
move-result-object v3
|
|
|
|
move-object v9, v1
|
|
|
|
move-object v10, v2
|
|
|
|
move-object v11, v3
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move-object v9, v1
|
|
|
|
move-object v10, v9
|
|
|
|
move-object v11, v10
|
|
|
|
.line 440
|
|
:goto_0
|
|
new-instance v1, Lokhttp3/Address;
|
|
|
|
.line 441
|
|
invoke-virtual/range {p1 .. p1}, Lokhttp3/HttpUrl;->host()Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
.line 442
|
|
invoke-virtual/range {p1 .. p1}, Lokhttp3/HttpUrl;->port()I
|
|
|
|
move-result v6
|
|
|
|
iget-object v2, v0, Lokhttp3/internal/connection/RealCall;->client:Lokhttp3/OkHttpClient;
|
|
|
|
.line 443
|
|
invoke-virtual {v2}, Lokhttp3/OkHttpClient;->dns()Lokhttp3/Dns;
|
|
|
|
move-result-object v7
|
|
|
|
iget-object v2, v0, Lokhttp3/internal/connection/RealCall;->client:Lokhttp3/OkHttpClient;
|
|
|
|
.line 444
|
|
invoke-virtual {v2}, Lokhttp3/OkHttpClient;->socketFactory()Ljavax/net/SocketFactory;
|
|
|
|
move-result-object v8
|
|
|
|
iget-object v2, v0, Lokhttp3/internal/connection/RealCall;->client:Lokhttp3/OkHttpClient;
|
|
|
|
.line 448
|
|
invoke-virtual {v2}, Lokhttp3/OkHttpClient;->proxyAuthenticator()Lokhttp3/Authenticator;
|
|
|
|
move-result-object v12
|
|
|
|
iget-object v2, v0, Lokhttp3/internal/connection/RealCall;->client:Lokhttp3/OkHttpClient;
|
|
|
|
.line 449
|
|
invoke-virtual {v2}, Lokhttp3/OkHttpClient;->proxy()Ljava/net/Proxy;
|
|
|
|
move-result-object v13
|
|
|
|
iget-object v2, v0, Lokhttp3/internal/connection/RealCall;->client:Lokhttp3/OkHttpClient;
|
|
|
|
.line 450
|
|
invoke-virtual {v2}, Lokhttp3/OkHttpClient;->protocols()Ljava/util/List;
|
|
|
|
move-result-object v14
|
|
|
|
iget-object v2, v0, Lokhttp3/internal/connection/RealCall;->client:Lokhttp3/OkHttpClient;
|
|
|
|
.line 451
|
|
invoke-virtual {v2}, Lokhttp3/OkHttpClient;->connectionSpecs()Ljava/util/List;
|
|
|
|
move-result-object v15
|
|
|
|
iget-object v0, v0, Lokhttp3/internal/connection/RealCall;->client:Lokhttp3/OkHttpClient;
|
|
|
|
.line 452
|
|
invoke-virtual {v0}, Lokhttp3/OkHttpClient;->proxySelector()Ljava/net/ProxySelector;
|
|
|
|
move-result-object v16
|
|
|
|
move-object v4, v1
|
|
|
|
.line 440
|
|
invoke-direct/range {v4 .. v16}, Lokhttp3/Address;-><init>(Ljava/lang/String;ILokhttp3/Dns;Ljavax/net/SocketFactory;Ljavax/net/ssl/SSLSocketFactory;Ljavax/net/ssl/HostnameVerifier;Lokhttp3/CertificatePinner;Lokhttp3/Authenticator;Ljava/net/Proxy;Ljava/util/List;Ljava/util/List;Ljava/net/ProxySelector;)V
|
|
|
|
return-object v1
|
|
.end method
|
|
|
|
.method private final timeoutExit(Ljava/io/IOException;)Ljava/io/IOException;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<E:",
|
|
"Ljava/io/IOException;",
|
|
">(TE;)TE;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-boolean v0, p0, Lokhttp3/internal/connection/RealCall;->timeoutEarlyExit:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-object p1
|
|
|
|
:cond_0
|
|
iget-object p0, p0, Lokhttp3/internal/connection/RealCall;->timeout:Lokhttp3/internal/connection/RealCall$timeout$1;
|
|
|
|
.line 396
|
|
invoke-virtual {p0}, Lokhttp3/internal/connection/RealCall$timeout$1;->exit()Z
|
|
|
|
move-result p0
|
|
|
|
if-nez p0, :cond_1
|
|
|
|
return-object p1
|
|
|
|
.line 398
|
|
:cond_1
|
|
new-instance p0, Ljava/io/InterruptedIOException;
|
|
|
|
const-string v0, "timeout"
|
|
|
|
invoke-direct {p0, v0}, Ljava/io/InterruptedIOException;-><init>(Ljava/lang/String;)V
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
.line 399
|
|
check-cast p1, Ljava/lang/Throwable;
|
|
|
|
invoke-virtual {p0, p1}, Ljava/io/InterruptedIOException;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable;
|
|
|
|
.line 401
|
|
:cond_2
|
|
check-cast p0, Ljava/io/IOException;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private final toLoggableString()Ljava/lang/String;
|
|
.locals 2
|
|
|
|
.line 463
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
invoke-virtual {p0}, Lokhttp3/internal/connection/RealCall;->isCanceled()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
const-string v1, "canceled "
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const-string v1, ""
|
|
|
|
:goto_0
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
iget-boolean v1, p0, Lokhttp3/internal/connection/RealCall;->forWebSocket:Z
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
const-string v1, "web socket"
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const-string v1, "call"
|
|
|
|
.line 464
|
|
:goto_1
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, " to "
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
.line 465
|
|
invoke-virtual {p0}, Lokhttp3/internal/connection/RealCall;->redactedUrl$okhttp()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {v0, p0}, 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
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final acquireConnectionNoEvents(Lokhttp3/internal/connection/RealConnection;)V
|
|
.locals 3
|
|
|
|
const-string v0, "connection"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 553
|
|
sget-boolean v0, Lokhttp3/internal/Util;->assertionsEnabled:Z
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-static {p1}, Ljava/lang/Thread;->holdsLock(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 554
|
|
:cond_0
|
|
new-instance p0, 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, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)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/lang/AssertionError;-><init>(Ljava/lang/Object;)V
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
throw p0
|
|
|
|
:cond_1
|
|
:goto_0
|
|
iget-object v0, p0, Lokhttp3/internal/connection/RealCall;->connection:Lokhttp3/internal/connection/RealConnection;
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
const/4 v0, 0x0
|
|
|
|
:goto_1
|
|
if-eqz v0, :cond_3
|
|
|
|
iput-object p1, p0, Lokhttp3/internal/connection/RealCall;->connection:Lokhttp3/internal/connection/RealConnection;
|
|
|
|
.line 273
|
|
invoke-virtual {p1}, Lokhttp3/internal/connection/RealConnection;->getCalls()Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
new-instance v0, Lokhttp3/internal/connection/RealCall$CallReference;
|
|
|
|
iget-object v1, p0, Lokhttp3/internal/connection/RealCall;->callStackTrace:Ljava/lang/Object;
|
|
|
|
invoke-direct {v0, p0, v1}, Lokhttp3/internal/connection/RealCall$CallReference;-><init>(Lokhttp3/internal/connection/RealCall;Ljava/lang/Object;)V
|
|
|
|
invoke-interface {p1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
return-void
|
|
|
|
.line 271
|
|
:cond_3
|
|
new-instance p0, Ljava/lang/IllegalStateException;
|
|
|
|
const-string p1, "Check failed."
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public cancel()V
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Lokhttp3/internal/connection/RealCall;->canceled:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const/4 v0, 0x1
|
|
|
|
iput-boolean v0, p0, Lokhttp3/internal/connection/RealCall;->canceled:Z
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/connection/RealCall;->exchange:Lokhttp3/internal/connection/Exchange;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 139
|
|
invoke-virtual {v0}, Lokhttp3/internal/connection/Exchange;->cancel()V
|
|
|
|
:cond_1
|
|
iget-object v0, p0, Lokhttp3/internal/connection/RealCall;->connectionToCancel:Lokhttp3/internal/connection/RealConnection;
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 140
|
|
invoke-virtual {v0}, Lokhttp3/internal/connection/RealConnection;->cancel()V
|
|
|
|
:cond_2
|
|
iget-object v0, p0, Lokhttp3/internal/connection/RealCall;->eventListener:Lokhttp3/EventListener;
|
|
|
|
.line 142
|
|
check-cast p0, Lokhttp3/Call;
|
|
|
|
invoke-virtual {v0, p0}, Lokhttp3/EventListener;->canceled(Lokhttp3/Call;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public bridge synthetic clone()Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
.line 60
|
|
invoke-virtual {p0}, Lokhttp3/internal/connection/RealCall;->clone()Lokhttp3/internal/connection/RealCall;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public bridge synthetic clone()Lokhttp3/Call;
|
|
.locals 0
|
|
|
|
.line 60
|
|
invoke-virtual {p0}, Lokhttp3/internal/connection/RealCall;->clone()Lokhttp3/internal/connection/RealCall;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Lokhttp3/Call;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public clone()Lokhttp3/internal/connection/RealCall;
|
|
.locals 3
|
|
|
|
.line 122
|
|
new-instance v0, Lokhttp3/internal/connection/RealCall;
|
|
|
|
iget-object v1, p0, Lokhttp3/internal/connection/RealCall;->client:Lokhttp3/OkHttpClient;
|
|
|
|
iget-object v2, p0, Lokhttp3/internal/connection/RealCall;->originalRequest:Lokhttp3/Request;
|
|
|
|
iget-boolean p0, p0, Lokhttp3/internal/connection/RealCall;->forWebSocket:Z
|
|
|
|
invoke-direct {v0, v1, v2, p0}, Lokhttp3/internal/connection/RealCall;-><init>(Lokhttp3/OkHttpClient;Lokhttp3/Request;Z)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public enqueue(Lokhttp3/Callback;)V
|
|
.locals 3
|
|
|
|
const-string v0, "responseCallback"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/connection/RealCall;->executed:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, 0x1
|
|
|
|
.line 161
|
|
invoke-virtual {v0, v1, v2}, Ljava/util/concurrent/atomic/AtomicBoolean;->compareAndSet(ZZ)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 163
|
|
invoke-direct {p0}, Lokhttp3/internal/connection/RealCall;->callStart()V
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/connection/RealCall;->client:Lokhttp3/OkHttpClient;
|
|
|
|
.line 164
|
|
invoke-virtual {v0}, Lokhttp3/OkHttpClient;->dispatcher()Lokhttp3/Dispatcher;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v1, Lokhttp3/internal/connection/RealCall$AsyncCall;
|
|
|
|
invoke-direct {v1, p0, p1}, Lokhttp3/internal/connection/RealCall$AsyncCall;-><init>(Lokhttp3/internal/connection/RealCall;Lokhttp3/Callback;)V
|
|
|
|
invoke-virtual {v0, v1}, Lokhttp3/Dispatcher;->enqueue$okhttp(Lokhttp3/internal/connection/RealCall$AsyncCall;)V
|
|
|
|
return-void
|
|
|
|
.line 161
|
|
:cond_0
|
|
new-instance p0, Ljava/lang/IllegalStateException;
|
|
|
|
const-string p1, "Already Executed"
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public final enterNetworkInterceptorExchange(Lokhttp3/Request;Z)V
|
|
.locals 2
|
|
|
|
const-string v0, "request"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/connection/RealCall;->interceptorScopedExchange:Lokhttp3/internal/connection/Exchange;
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
move v0, v1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
if-eqz v0, :cond_4
|
|
|
|
.line 228
|
|
monitor-enter p0
|
|
|
|
:try_start_0
|
|
iget-boolean v0, p0, Lokhttp3/internal/connection/RealCall;->responseBodyOpen:Z
|
|
|
|
xor-int/2addr v0, v1
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
iget-boolean v0, p0, Lokhttp3/internal/connection/RealCall;->requestBodyOpen:Z
|
|
|
|
xor-int/2addr v0, v1
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 234
|
|
sget-object v0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 228
|
|
monitor-exit p0
|
|
|
|
if-eqz p2, :cond_1
|
|
|
|
.line 237
|
|
new-instance p2, Lokhttp3/internal/connection/ExchangeFinder;
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/connection/RealCall;->connectionPool:Lokhttp3/internal/connection/RealConnectionPool;
|
|
|
|
.line 239
|
|
invoke-virtual {p1}, Lokhttp3/Request;->url()Lokhttp3/HttpUrl;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p0, p1}, Lokhttp3/internal/connection/RealCall;->createAddress(Lokhttp3/HttpUrl;)Lokhttp3/Address;
|
|
|
|
move-result-object p1
|
|
|
|
iget-object v1, p0, Lokhttp3/internal/connection/RealCall;->eventListener:Lokhttp3/EventListener;
|
|
|
|
.line 237
|
|
invoke-direct {p2, v0, p1, p0, v1}, Lokhttp3/internal/connection/ExchangeFinder;-><init>(Lokhttp3/internal/connection/RealConnectionPool;Lokhttp3/Address;Lokhttp3/internal/connection/RealCall;Lokhttp3/EventListener;)V
|
|
|
|
iput-object p2, p0, Lokhttp3/internal/connection/RealCall;->exchangeFinder:Lokhttp3/internal/connection/ExchangeFinder;
|
|
|
|
:cond_1
|
|
return-void
|
|
|
|
:cond_2
|
|
:try_start_1
|
|
const-string p1, "Check failed."
|
|
|
|
.line 233
|
|
new-instance p2, Ljava/lang/IllegalStateException;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p2, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast p2, Ljava/lang/Throwable;
|
|
|
|
throw p2
|
|
|
|
:cond_3
|
|
const-string p1, "cannot make a new request because the previous response is still open: please call response.close()"
|
|
|
|
.line 229
|
|
new-instance p2, Ljava/lang/IllegalStateException;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p2, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast p2, Ljava/lang/Throwable;
|
|
|
|
throw p2
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
.line 228
|
|
monitor-exit p0
|
|
|
|
throw p1
|
|
|
|
:cond_4
|
|
const-string p0, "Check failed."
|
|
|
|
.line 226
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {p1, p0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast p1, Ljava/lang/Throwable;
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public execute()Lokhttp3/Response;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/connection/RealCall;->executed:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, 0x1
|
|
|
|
.line 148
|
|
invoke-virtual {v0, v1, v2}, Ljava/util/concurrent/atomic/AtomicBoolean;->compareAndSet(ZZ)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/connection/RealCall;->timeout:Lokhttp3/internal/connection/RealCall$timeout$1;
|
|
|
|
.line 150
|
|
invoke-virtual {v0}, Lokhttp3/internal/connection/RealCall$timeout$1;->enter()V
|
|
|
|
.line 151
|
|
invoke-direct {p0}, Lokhttp3/internal/connection/RealCall;->callStart()V
|
|
|
|
:try_start_0
|
|
iget-object v0, p0, Lokhttp3/internal/connection/RealCall;->client:Lokhttp3/OkHttpClient;
|
|
|
|
.line 153
|
|
invoke-virtual {v0}, Lokhttp3/OkHttpClient;->dispatcher()Lokhttp3/Dispatcher;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p0}, Lokhttp3/Dispatcher;->executed$okhttp(Lokhttp3/internal/connection/RealCall;)V
|
|
|
|
.line 154
|
|
invoke-virtual {p0}, Lokhttp3/internal/connection/RealCall;->getResponseWithInterceptorChain$okhttp()Lokhttp3/Response;
|
|
|
|
move-result-object v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
iget-object v1, p0, Lokhttp3/internal/connection/RealCall;->client:Lokhttp3/OkHttpClient;
|
|
|
|
.line 156
|
|
invoke-virtual {v1}, Lokhttp3/OkHttpClient;->dispatcher()Lokhttp3/Dispatcher;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1, p0}, Lokhttp3/Dispatcher;->finished$okhttp(Lokhttp3/internal/connection/RealCall;)V
|
|
|
|
return-object v0
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
iget-object v1, p0, Lokhttp3/internal/connection/RealCall;->client:Lokhttp3/OkHttpClient;
|
|
|
|
invoke-virtual {v1}, Lokhttp3/OkHttpClient;->dispatcher()Lokhttp3/Dispatcher;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1, p0}, Lokhttp3/Dispatcher;->finished$okhttp(Lokhttp3/internal/connection/RealCall;)V
|
|
|
|
throw v0
|
|
|
|
.line 148
|
|
:cond_0
|
|
new-instance p0, Ljava/lang/IllegalStateException;
|
|
|
|
const-string v0, "Already Executed"
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {p0, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public final exitNetworkInterceptorExchange$okhttp(Z)V
|
|
.locals 1
|
|
|
|
.line 419
|
|
monitor-enter p0
|
|
|
|
:try_start_0
|
|
iget-boolean v0, p0, Lokhttp3/internal/connection/RealCall;->expectMoreExchanges:Z
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 421
|
|
sget-object v0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 419
|
|
monitor-exit p0
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
iget-object p1, p0, Lokhttp3/internal/connection/RealCall;->exchange:Lokhttp3/internal/connection/Exchange;
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 424
|
|
invoke-virtual {p1}, Lokhttp3/internal/connection/Exchange;->detachWithViolence()V
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
.line 427
|
|
move-object v0, p1
|
|
|
|
check-cast v0, Lokhttp3/internal/connection/Exchange;
|
|
|
|
iput-object p1, p0, Lokhttp3/internal/connection/RealCall;->interceptorScopedExchange:Lokhttp3/internal/connection/Exchange;
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
:try_start_1
|
|
const-string p1, "released"
|
|
|
|
.line 420
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {v0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast v0, Ljava/lang/Throwable;
|
|
|
|
throw v0
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
.line 419
|
|
monitor-exit p0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final getClient()Lokhttp3/OkHttpClient;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lokhttp3/internal/connection/RealCall;->client:Lokhttp3/OkHttpClient;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public final getConnection()Lokhttp3/internal/connection/RealConnection;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lokhttp3/internal/connection/RealCall;->connection:Lokhttp3/internal/connection/RealConnection;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public final getConnectionToCancel()Lokhttp3/internal/connection/RealConnection;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lokhttp3/internal/connection/RealCall;->connectionToCancel:Lokhttp3/internal/connection/RealConnection;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public final getEventListener$okhttp()Lokhttp3/EventListener;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lokhttp3/internal/connection/RealCall;->eventListener:Lokhttp3/EventListener;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public final getForWebSocket()Z
|
|
.locals 0
|
|
|
|
iget-boolean p0, p0, Lokhttp3/internal/connection/RealCall;->forWebSocket:Z
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public final getInterceptorScopedExchange$okhttp()Lokhttp3/internal/connection/Exchange;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lokhttp3/internal/connection/RealCall;->interceptorScopedExchange:Lokhttp3/internal/connection/Exchange;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public final getOriginalRequest()Lokhttp3/Request;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lokhttp3/internal/connection/RealCall;->originalRequest:Lokhttp3/Request;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public final getResponseWithInterceptorChain$okhttp()Lokhttp3/Response;
|
|
.locals 10
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 177
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
move-object v3, v0
|
|
|
|
check-cast v3, Ljava/util/List;
|
|
|
|
.line 178
|
|
move-object v0, v3
|
|
|
|
check-cast v0, Ljava/util/Collection;
|
|
|
|
iget-object v1, p0, Lokhttp3/internal/connection/RealCall;->client:Lokhttp3/OkHttpClient;
|
|
|
|
invoke-virtual {v1}, Lokhttp3/OkHttpClient;->interceptors()Ljava/util/List;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Ljava/lang/Iterable;
|
|
|
|
invoke-static {v0, v1}, Lkotlin/collections/CollectionsKt;->addAll(Ljava/util/Collection;Ljava/lang/Iterable;)Z
|
|
|
|
.line 179
|
|
new-instance v1, Lokhttp3/internal/http/RetryAndFollowUpInterceptor;
|
|
|
|
iget-object v2, p0, Lokhttp3/internal/connection/RealCall;->client:Lokhttp3/OkHttpClient;
|
|
|
|
invoke-direct {v1, v2}, Lokhttp3/internal/http/RetryAndFollowUpInterceptor;-><init>(Lokhttp3/OkHttpClient;)V
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
|
|
|
.line 180
|
|
new-instance v1, Lokhttp3/internal/http/BridgeInterceptor;
|
|
|
|
iget-object v2, p0, Lokhttp3/internal/connection/RealCall;->client:Lokhttp3/OkHttpClient;
|
|
|
|
invoke-virtual {v2}, Lokhttp3/OkHttpClient;->cookieJar()Lokhttp3/CookieJar;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-direct {v1, v2}, Lokhttp3/internal/http/BridgeInterceptor;-><init>(Lokhttp3/CookieJar;)V
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
|
|
|
.line 181
|
|
new-instance v1, Lokhttp3/internal/cache/CacheInterceptor;
|
|
|
|
iget-object v2, p0, Lokhttp3/internal/connection/RealCall;->client:Lokhttp3/OkHttpClient;
|
|
|
|
invoke-virtual {v2}, Lokhttp3/OkHttpClient;->cache()Lokhttp3/Cache;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-direct {v1, v2}, Lokhttp3/internal/cache/CacheInterceptor;-><init>(Lokhttp3/Cache;)V
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
|
|
|
.line 182
|
|
sget-object v1, Lokhttp3/internal/connection/ConnectInterceptor;->INSTANCE:Lokhttp3/internal/connection/ConnectInterceptor;
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
|
|
|
iget-boolean v1, p0, Lokhttp3/internal/connection/RealCall;->forWebSocket:Z
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
iget-object v1, p0, Lokhttp3/internal/connection/RealCall;->client:Lokhttp3/OkHttpClient;
|
|
|
|
.line 184
|
|
invoke-virtual {v1}, Lokhttp3/OkHttpClient;->networkInterceptors()Ljava/util/List;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Ljava/lang/Iterable;
|
|
|
|
invoke-static {v0, v1}, Lkotlin/collections/CollectionsKt;->addAll(Ljava/util/Collection;Ljava/lang/Iterable;)Z
|
|
|
|
.line 186
|
|
:cond_0
|
|
new-instance v1, Lokhttp3/internal/http/CallServerInterceptor;
|
|
|
|
iget-boolean v2, p0, Lokhttp3/internal/connection/RealCall;->forWebSocket:Z
|
|
|
|
invoke-direct {v1, v2}, Lokhttp3/internal/http/CallServerInterceptor;-><init>(Z)V
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
|
|
|
.line 188
|
|
new-instance v0, Lokhttp3/internal/http/RealInterceptorChain;
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const/4 v5, 0x0
|
|
|
|
iget-object v6, p0, Lokhttp3/internal/connection/RealCall;->originalRequest:Lokhttp3/Request;
|
|
|
|
iget-object v1, p0, Lokhttp3/internal/connection/RealCall;->client:Lokhttp3/OkHttpClient;
|
|
|
|
.line 194
|
|
invoke-virtual {v1}, Lokhttp3/OkHttpClient;->connectTimeoutMillis()I
|
|
|
|
move-result v7
|
|
|
|
iget-object v1, p0, Lokhttp3/internal/connection/RealCall;->client:Lokhttp3/OkHttpClient;
|
|
|
|
.line 195
|
|
invoke-virtual {v1}, Lokhttp3/OkHttpClient;->readTimeoutMillis()I
|
|
|
|
move-result v8
|
|
|
|
iget-object v1, p0, Lokhttp3/internal/connection/RealCall;->client:Lokhttp3/OkHttpClient;
|
|
|
|
.line 196
|
|
invoke-virtual {v1}, Lokhttp3/OkHttpClient;->writeTimeoutMillis()I
|
|
|
|
move-result v9
|
|
|
|
move-object v1, v0
|
|
|
|
move-object v2, p0
|
|
|
|
.line 188
|
|
invoke-direct/range {v1 .. v9}, Lokhttp3/internal/http/RealInterceptorChain;-><init>(Lokhttp3/internal/connection/RealCall;Ljava/util/List;ILokhttp3/internal/connection/Exchange;Lokhttp3/Request;III)V
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
:try_start_0
|
|
iget-object v3, p0, Lokhttp3/internal/connection/RealCall;->originalRequest:Lokhttp3/Request;
|
|
|
|
.line 201
|
|
invoke-virtual {v0, v3}, Lokhttp3/internal/http/RealInterceptorChain;->proceed(Lokhttp3/Request;)Lokhttp3/Response;
|
|
|
|
move-result-object v0
|
|
|
|
.line 202
|
|
invoke-virtual {p0}, Lokhttp3/internal/connection/RealCall;->isCanceled()Z
|
|
|
|
move-result v3
|
|
:try_end_0
|
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
if-nez v3, :cond_1
|
|
|
|
.line 212
|
|
invoke-virtual {p0, v1}, Lokhttp3/internal/connection/RealCall;->noMoreExchanges$okhttp(Ljava/io/IOException;)Ljava/io/IOException;
|
|
|
|
return-object v0
|
|
|
|
.line 203
|
|
:cond_1
|
|
:try_start_1
|
|
check-cast v0, Ljava/io/Closeable;
|
|
|
|
invoke-static {v0}, Lokhttp3/internal/Util;->closeQuietly(Ljava/io/Closeable;)V
|
|
|
|
.line 204
|
|
new-instance v0, Ljava/io/IOException;
|
|
|
|
const-string v3, "Canceled"
|
|
|
|
invoke-direct {v0, v3}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast v0, Ljava/lang/Throwable;
|
|
|
|
throw v0
|
|
:try_end_1
|
|
.catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
const/4 v2, 0x1
|
|
|
|
.line 209
|
|
:try_start_2
|
|
invoke-virtual {p0, v0}, Lokhttp3/internal/connection/RealCall;->noMoreExchanges$okhttp(Ljava/io/IOException;)Ljava/io/IOException;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
new-instance v0, Ljava/lang/NullPointerException;
|
|
|
|
const-string v3, "null cannot be cast to non-null type kotlin.Throwable"
|
|
|
|
invoke-direct {v0, v3}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_2
|
|
check-cast v0, Ljava/lang/Throwable;
|
|
|
|
throw v0
|
|
:try_end_2
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
|
|
|
:goto_0
|
|
if-nez v2, :cond_3
|
|
|
|
.line 212
|
|
invoke-virtual {p0, v1}, Lokhttp3/internal/connection/RealCall;->noMoreExchanges$okhttp(Ljava/io/IOException;)Ljava/io/IOException;
|
|
|
|
:cond_3
|
|
throw v0
|
|
.end method
|
|
|
|
.method public final initExchange$okhttp(Lokhttp3/internal/http/RealInterceptorChain;)Lokhttp3/internal/connection/Exchange;
|
|
.locals 4
|
|
|
|
const-string v0, "chain"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 248
|
|
monitor-enter p0
|
|
|
|
:try_start_0
|
|
iget-boolean v0, p0, Lokhttp3/internal/connection/RealCall;->expectMoreExchanges:Z
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
iget-boolean v0, p0, Lokhttp3/internal/connection/RealCall;->responseBodyOpen:Z
|
|
|
|
const/4 v1, 0x1
|
|
|
|
xor-int/2addr v0, v1
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
iget-boolean v0, p0, Lokhttp3/internal/connection/RealCall;->requestBodyOpen:Z
|
|
|
|
xor-int/2addr v0, v1
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 252
|
|
sget-object v0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_1
|
|
|
|
.line 248
|
|
monitor-exit p0
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/connection/RealCall;->exchangeFinder:Lokhttp3/internal/connection/ExchangeFinder;
|
|
|
|
.line 254
|
|
invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
iget-object v2, p0, Lokhttp3/internal/connection/RealCall;->client:Lokhttp3/OkHttpClient;
|
|
|
|
.line 255
|
|
invoke-virtual {v0, v2, p1}, Lokhttp3/internal/connection/ExchangeFinder;->find(Lokhttp3/OkHttpClient;Lokhttp3/internal/http/RealInterceptorChain;)Lokhttp3/internal/http/ExchangeCodec;
|
|
|
|
move-result-object p1
|
|
|
|
.line 256
|
|
new-instance v2, Lokhttp3/internal/connection/Exchange;
|
|
|
|
iget-object v3, p0, Lokhttp3/internal/connection/RealCall;->eventListener:Lokhttp3/EventListener;
|
|
|
|
invoke-direct {v2, p0, v3, v0, p1}, Lokhttp3/internal/connection/Exchange;-><init>(Lokhttp3/internal/connection/RealCall;Lokhttp3/EventListener;Lokhttp3/internal/connection/ExchangeFinder;Lokhttp3/internal/http/ExchangeCodec;)V
|
|
|
|
iput-object v2, p0, Lokhttp3/internal/connection/RealCall;->interceptorScopedExchange:Lokhttp3/internal/connection/Exchange;
|
|
|
|
iput-object v2, p0, Lokhttp3/internal/connection/RealCall;->exchange:Lokhttp3/internal/connection/Exchange;
|
|
|
|
.line 259
|
|
monitor-enter p0
|
|
|
|
:try_start_1
|
|
iput-boolean v1, p0, Lokhttp3/internal/connection/RealCall;->requestBodyOpen:Z
|
|
|
|
iput-boolean v1, p0, Lokhttp3/internal/connection/RealCall;->responseBodyOpen:Z
|
|
|
|
.line 262
|
|
sget-object p1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
.line 259
|
|
monitor-exit p0
|
|
|
|
iget-boolean p0, p0, Lokhttp3/internal/connection/RealCall;->canceled:Z
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
return-object v2
|
|
|
|
.line 264
|
|
:cond_0
|
|
new-instance p0, Ljava/io/IOException;
|
|
|
|
const-string p1, "Canceled"
|
|
|
|
invoke-direct {p0, p1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
throw p0
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
.line 259
|
|
monitor-exit p0
|
|
|
|
throw p1
|
|
|
|
:cond_1
|
|
:try_start_2
|
|
const-string p1, "Check failed."
|
|
|
|
.line 251
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {v0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast v0, Ljava/lang/Throwable;
|
|
|
|
throw v0
|
|
|
|
:cond_2
|
|
const-string p1, "Check failed."
|
|
|
|
.line 250
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {v0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast v0, Ljava/lang/Throwable;
|
|
|
|
throw v0
|
|
|
|
:cond_3
|
|
const-string p1, "released"
|
|
|
|
.line 249
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {v0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast v0, Ljava/lang/Throwable;
|
|
|
|
throw v0
|
|
:try_end_2
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_1
|
|
|
|
:catchall_1
|
|
move-exception p1
|
|
|
|
.line 248
|
|
monitor-exit p0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public isCanceled()Z
|
|
.locals 0
|
|
|
|
iget-boolean p0, p0, Lokhttp3/internal/connection/RealCall;->canceled:Z
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public isExecuted()Z
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lokhttp3/internal/connection/RealCall;->executed:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
.line 167
|
|
invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicBoolean;->get()Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public final messageDone$okhttp(Lokhttp3/internal/connection/Exchange;ZZLjava/io/IOException;)Ljava/io/IOException;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<E:",
|
|
"Ljava/io/IOException;",
|
|
">(",
|
|
"Lokhttp3/internal/connection/Exchange;",
|
|
"ZZTE;)TE;"
|
|
}
|
|
.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/RealCall;->exchange:Lokhttp3/internal/connection/Exchange;
|
|
|
|
.line 290
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
xor-int/2addr p1, v0
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
return-object p4
|
|
|
|
.line 294
|
|
:cond_0
|
|
monitor-enter p0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
if-eqz p2, :cond_1
|
|
|
|
:try_start_0
|
|
iget-boolean v1, p0, Lokhttp3/internal/connection/RealCall;->requestBodyOpen:Z
|
|
|
|
if-nez v1, :cond_2
|
|
|
|
goto :goto_0
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
goto :goto_4
|
|
|
|
:cond_1
|
|
:goto_0
|
|
if-eqz p3, :cond_7
|
|
|
|
iget-boolean v1, p0, Lokhttp3/internal/connection/RealCall;->responseBodyOpen:Z
|
|
|
|
if-eqz v1, :cond_7
|
|
|
|
:cond_2
|
|
if-eqz p2, :cond_3
|
|
|
|
iput-boolean p1, p0, Lokhttp3/internal/connection/RealCall;->requestBodyOpen:Z
|
|
|
|
:cond_3
|
|
if-eqz p3, :cond_4
|
|
|
|
iput-boolean p1, p0, Lokhttp3/internal/connection/RealCall;->responseBodyOpen:Z
|
|
|
|
:cond_4
|
|
iget-boolean p2, p0, Lokhttp3/internal/connection/RealCall;->requestBodyOpen:Z
|
|
|
|
if-nez p2, :cond_5
|
|
|
|
iget-boolean p3, p0, Lokhttp3/internal/connection/RealCall;->responseBodyOpen:Z
|
|
|
|
if-nez p3, :cond_5
|
|
|
|
move p3, v0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_5
|
|
move p3, p1
|
|
|
|
:goto_1
|
|
if-nez p2, :cond_6
|
|
|
|
iget-boolean p2, p0, Lokhttp3/internal/connection/RealCall;->responseBodyOpen:Z
|
|
|
|
if-nez p2, :cond_6
|
|
|
|
iget-boolean p2, p0, Lokhttp3/internal/connection/RealCall;->expectMoreExchanges:Z
|
|
|
|
if-nez p2, :cond_6
|
|
|
|
goto :goto_2
|
|
|
|
:cond_6
|
|
move v0, p1
|
|
|
|
:goto_2
|
|
move p1, p3
|
|
|
|
goto :goto_3
|
|
|
|
:cond_7
|
|
move v0, p1
|
|
|
|
.line 301
|
|
:goto_3
|
|
sget-object p2, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 294
|
|
monitor-exit p0
|
|
|
|
if-eqz p1, :cond_8
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 304
|
|
move-object p2, p1
|
|
|
|
check-cast p2, Lokhttp3/internal/connection/Exchange;
|
|
|
|
iput-object p1, p0, Lokhttp3/internal/connection/RealCall;->exchange:Lokhttp3/internal/connection/Exchange;
|
|
|
|
iget-object p1, p0, Lokhttp3/internal/connection/RealCall;->connection:Lokhttp3/internal/connection/RealConnection;
|
|
|
|
if-eqz p1, :cond_8
|
|
|
|
.line 305
|
|
invoke-virtual {p1}, Lokhttp3/internal/connection/RealConnection;->incrementSuccessCount$okhttp()V
|
|
|
|
:cond_8
|
|
if-eqz v0, :cond_9
|
|
|
|
.line 309
|
|
invoke-direct {p0, p4}, Lokhttp3/internal/connection/RealCall;->callDone(Ljava/io/IOException;)Ljava/io/IOException;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
:cond_9
|
|
return-object p4
|
|
|
|
.line 294
|
|
:goto_4
|
|
monitor-exit p0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final noMoreExchanges$okhttp(Ljava/io/IOException;)Ljava/io/IOException;
|
|
.locals 2
|
|
|
|
.line 317
|
|
monitor-enter p0
|
|
|
|
:try_start_0
|
|
iget-boolean v0, p0, Lokhttp3/internal/connection/RealCall;->expectMoreExchanges:Z
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iput-boolean v1, p0, Lokhttp3/internal/connection/RealCall;->expectMoreExchanges:Z
|
|
|
|
iget-boolean v0, p0, Lokhttp3/internal/connection/RealCall;->requestBodyOpen:Z
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iget-boolean v0, p0, Lokhttp3/internal/connection/RealCall;->responseBodyOpen:Z
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
move v1, v0
|
|
|
|
.line 322
|
|
:cond_0
|
|
sget-object v0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit;
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 317
|
|
monitor-exit p0
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 325
|
|
invoke-direct {p0, p1}, Lokhttp3/internal/connection/RealCall;->callDone(Ljava/io/IOException;)Ljava/io/IOException;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
:cond_1
|
|
return-object p1
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
.line 317
|
|
monitor-exit p0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final redactedUrl$okhttp()Ljava/lang/String;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lokhttp3/internal/connection/RealCall;->originalRequest:Lokhttp3/Request;
|
|
|
|
.line 468
|
|
invoke-virtual {p0}, Lokhttp3/Request;->url()Lokhttp3/HttpUrl;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0}, Lokhttp3/HttpUrl;->redact()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public final releaseConnectionNoEvents$okhttp()Ljava/net/Socket;
|
|
.locals 8
|
|
|
|
iget-object v0, p0, Lokhttp3/internal/connection/RealCall;->connection:Lokhttp3/internal/connection/RealConnection;
|
|
|
|
.line 374
|
|
invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
.line 565
|
|
sget-boolean v1, Lokhttp3/internal/Util;->assertionsEnabled:Z
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
invoke-static {v0}, Ljava/lang/Thread;->holdsLock(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 566
|
|
:cond_0
|
|
new-instance p0, Ljava/lang/AssertionError;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
const-string v2, "Thread "
|
|
|
|
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "Thread.currentThread()"
|
|
|
|
invoke-static {v2, v3}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v2}, Ljava/lang/Thread;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, " MUST hold lock on "
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {p0, v0}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
throw p0
|
|
|
|
.line 377
|
|
:cond_1
|
|
:goto_0
|
|
invoke-virtual {v0}, Lokhttp3/internal/connection/RealConnection;->getCalls()Ljava/util/List;
|
|
|
|
move-result-object v1
|
|
|
|
.line 570
|
|
invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v2
|
|
|
|
const/4 v3, 0x0
|
|
|
|
move v4, v3
|
|
|
|
:goto_1
|
|
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v5
|
|
|
|
const/4 v6, -0x1
|
|
|
|
if-eqz v5, :cond_3
|
|
|
|
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v5
|
|
|
|
.line 571
|
|
check-cast v5, Ljava/lang/ref/Reference;
|
|
|
|
.line 378
|
|
invoke-virtual {v5}, Ljava/lang/ref/Reference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v5
|
|
|
|
check-cast v5, Lokhttp3/internal/connection/RealCall;
|
|
|
|
move-object v7, p0
|
|
|
|
check-cast v7, Lokhttp3/internal/connection/RealCall;
|
|
|
|
invoke-static {v5, p0}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v5
|
|
|
|
if-eqz v5, :cond_2
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
add-int/lit8 v4, v4, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
move v4, v6
|
|
|
|
:goto_2
|
|
if-eq v4, v6, :cond_4
|
|
|
|
const/4 v3, 0x1
|
|
|
|
:cond_4
|
|
if-eqz v3, :cond_6
|
|
|
|
.line 381
|
|
invoke-interface {v1, v4}, Ljava/util/List;->remove(I)Ljava/lang/Object;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
.line 382
|
|
move-object v3, v2
|
|
|
|
check-cast v3, Lokhttp3/internal/connection/RealConnection;
|
|
|
|
iput-object v2, p0, Lokhttp3/internal/connection/RealCall;->connection:Lokhttp3/internal/connection/RealConnection;
|
|
|
|
.line 384
|
|
invoke-interface {v1}, Ljava/util/List;->isEmpty()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_5
|
|
|
|
.line 385
|
|
invoke-static {}, Ljava/lang/System;->nanoTime()J
|
|
|
|
move-result-wide v3
|
|
|
|
invoke-virtual {v0, v3, v4}, Lokhttp3/internal/connection/RealConnection;->setIdleAtNs$okhttp(J)V
|
|
|
|
iget-object p0, p0, Lokhttp3/internal/connection/RealCall;->connectionPool:Lokhttp3/internal/connection/RealConnectionPool;
|
|
|
|
.line 386
|
|
invoke-virtual {p0, v0}, Lokhttp3/internal/connection/RealConnectionPool;->connectionBecameIdle(Lokhttp3/internal/connection/RealConnection;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_5
|
|
|
|
.line 387
|
|
invoke-virtual {v0}, Lokhttp3/internal/connection/RealConnection;->socket()Ljava/net/Socket;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
:cond_5
|
|
return-object v2
|
|
|
|
.line 379
|
|
:cond_6
|
|
new-instance p0, Ljava/lang/IllegalStateException;
|
|
|
|
const-string v0, "Check failed."
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {p0, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public request()Lokhttp3/Request;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lokhttp3/internal/connection/RealCall;->originalRequest:Lokhttp3/Request;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public final retryAfterFailure()Z
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lokhttp3/internal/connection/RealCall;->exchangeFinder:Lokhttp3/internal/connection/ExchangeFinder;
|
|
|
|
.line 456
|
|
invoke-static {p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
|
|
|
invoke-virtual {p0}, Lokhttp3/internal/connection/ExchangeFinder;->retryAfterFailure()Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public final setConnectionToCancel(Lokhttp3/internal/connection/RealConnection;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lokhttp3/internal/connection/RealCall;->connectionToCancel:Lokhttp3/internal/connection/RealConnection;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public timeout()Lokio/AsyncTimeout;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lokhttp3/internal/connection/RealCall;->timeout:Lokhttp3/internal/connection/RealCall$timeout$1;
|
|
|
|
.line 119
|
|
check-cast p0, Lokio/AsyncTimeout;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public bridge synthetic timeout()Lokio/Timeout;
|
|
.locals 0
|
|
|
|
.line 60
|
|
invoke-virtual {p0}, Lokhttp3/internal/connection/RealCall;->timeout()Lokio/AsyncTimeout;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, Lokio/Timeout;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public final timeoutEarlyExit()V
|
|
.locals 2
|
|
|
|
iget-boolean v0, p0, Lokhttp3/internal/connection/RealCall;->timeoutEarlyExit:Z
|
|
|
|
const/4 v1, 0x1
|
|
|
|
xor-int/2addr v0, v1
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iput-boolean v1, p0, Lokhttp3/internal/connection/RealCall;->timeoutEarlyExit:Z
|
|
|
|
iget-object p0, p0, Lokhttp3/internal/connection/RealCall;->timeout:Lokhttp3/internal/connection/RealCall$timeout$1;
|
|
|
|
.line 411
|
|
invoke-virtual {p0}, Lokhttp3/internal/connection/RealCall$timeout$1;->exit()Z
|
|
|
|
return-void
|
|
|
|
.line 409
|
|
:cond_0
|
|
new-instance p0, Ljava/lang/IllegalStateException;
|
|
|
|
const-string v0, "Check failed."
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {p0, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
throw p0
|
|
.end method
|