.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 Util.kt\nokhttp3/internal/Util\n+ 3 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,536:1\n573#2,4:537\n573#2,4:541\n300#3,7:545\n*E\n*S KotlinDebug\n*F\n+ 1 RealCall.kt\nokhttp3/internal/connection/RealCall\n*L\n258#1,4:537\n361#1,4:541\n363#1,7:545\n*E\n" .end annotation .annotation runtime Lkotlin/Metadata; bv = { 0x1, 0x0, 0x3 } d1 = { "\u0000\u009d\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\u0005\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\r\n\u0002\u0008\u0004\n\u0002\u0010\u0002\n\u0002\u0008\u0004\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\u0005\n\u0002\u0018\u0002\n\u0002\u0008\n\n\u0002\u0010\u000e\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0007*\u0001)\u0018\u00002\u00020\u0001:\u0002`aB\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\u0010,\u001a\u00020-2\u0006\u0010\u000e\u001a\u00020\u000fJ\u0008\u0010.\u001a\u00020-H\u0002J\u0008\u0010/\u001a\u00020-H\u0016J\u0008\u00100\u001a\u00020\u0000H\u0016J\u0010\u00101\u001a\u0002022\u0006\u00103\u001a\u000204H\u0002J\u0010\u00105\u001a\u00020-2\u0006\u00106\u001a\u000207H\u0016J\u0016\u00108\u001a\u00020-2\u0006\u00109\u001a\u00020\u00052\u0006\u0010:\u001a\u00020\u0007J\u0008\u0010;\u001a\u00020\u001a\u00020\u0007H\u0000\u00a2\u0006\u0002\u0008?J\r\u0010@\u001a\u00020", "interceptorScopedExchange", "getInterceptorScopedExchange$okhttp", "()Lokhttp3/internal/connection/Exchange;", "noMoreExchanges", "getOriginalRequest", "()Lokhttp3/Request;", "timeout", "okhttp3/internal/connection/RealCall$timeout$1", "Lokhttp3/internal/connection/RealCall$timeout$1;", "timeoutEarlyExit", "acquireConnectionNoEvents", "", "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", "maybeReleaseConnection", "E", "Ljava/io/IOException;", "e", "force", "(Ljava/io/IOException;Z)Ljava/io/IOException;", "messageDone", "requestDone", "responseDone", "messageDone$okhttp", "(Lokhttp3/internal/connection/Exchange;ZZLjava/io/IOException;)Ljava/io/IOException;", "noMoreExchanges$okhttp", "redactedUrl", "", "redactedUrl$okhttp", "releaseConnectionNoEvents", "Ljava/net/Socket;", "releaseConnectionNoEvents$okhttp", "retryAfterFailure", "Lokio/AsyncTimeout;", "timeoutExit", "cause", "(Ljava/io/IOException;)Ljava/io/IOException;", "toLoggableString", "AsyncCall", "CallReference", "okhttp" } k = 0x1 mv = { 0x1, 0x1, 0x10 } .end annotation # instance fields .field private callStackTrace:Ljava/lang/Object; .field private 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 final eventListener:Lokhttp3/EventListener; .field private exchange:Lokhttp3/internal/connection/Exchange; .field private exchangeFinder:Lokhttp3/internal/connection/ExchangeFinder; .field private exchangeRequestDone:Z .field private exchangeResponseDone:Z .field private executed:Z .field private final forWebSocket:Z .field private interceptorScopedExchange:Lokhttp3/internal/connection/Exchange; .field private noMoreExchanges:Z .field private final originalRequest:Lokhttp3/Request; .field private final timeout:Lokhttp3/internal/connection/RealCall$timeout$1; .field private timeoutEarlyExit:Z # direct methods .method public constructor (Lokhttp3/OkHttpClient;Lokhttp3/Request;Z)V .registers 6 const-string v0, "client" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V const-string v0, "originalRequest" invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V .line 60 invoke-direct {p0}, Ljava/lang/Object;->()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;->(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 74 iput-object p2, p0, Lokhttp3/internal/connection/RealCall;->timeout:Lokhttp3/internal/connection/RealCall$timeout$1; return-void .end method .method public static final synthetic access$getTimeout$p(Lokhttp3/internal/connection/RealCall;)Lokhttp3/internal/connection/RealCall$timeout$1; .registers 1 .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; .registers 1 .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 callStart()V .registers 3 .line 166 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; .line 167 iget-object v0, p0, Lokhttp3/internal/connection/RealCall;->eventListener:Lokhttp3/EventListener; move-object v1, p0 check-cast v1, Lokhttp3/Call; invoke-virtual {v0, v1}, Lokhttp3/EventListener;->callStart(Lokhttp3/Call;)V return-void .end method .method private final createAddress(Lokhttp3/HttpUrl;)Lokhttp3/Address; .registers 19 move-object/from16 v0, p0 const/4 v1, 0x0 .line 416 move-object v2, v1 check-cast v2, Ljavax/net/ssl/SSLSocketFactory; .line 417 move-object v2, v1 check-cast v2, Ljavax/net/ssl/HostnameVerifier; .line 418 move-object v2, v1 check-cast v2, Lokhttp3/CertificatePinner; .line 419 invoke-virtual/range {p1 .. p1}, Lokhttp3/HttpUrl;->isHttps()Z move-result v2 if-eqz v2, :cond_28 .line 420 iget-object v1, v0, Lokhttp3/internal/connection/RealCall;->client:Lokhttp3/OkHttpClient; invoke-virtual {v1}, Lokhttp3/OkHttpClient;->sslSocketFactory()Ljavax/net/ssl/SSLSocketFactory; move-result-object v1 .line 421 iget-object v2, v0, Lokhttp3/internal/connection/RealCall;->client:Lokhttp3/OkHttpClient; invoke-virtual {v2}, Lokhttp3/OkHttpClient;->hostnameVerifier()Ljavax/net/ssl/HostnameVerifier; move-result-object v2 .line 422 iget-object v3, v0, Lokhttp3/internal/connection/RealCall;->client:Lokhttp3/OkHttpClient; 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_2b :cond_28 move-object v9, v1 move-object v10, v9 move-object v11, v10 .line 425 :goto_2b new-instance v1, Lokhttp3/Address; .line 426 invoke-virtual/range {p1 .. p1}, Lokhttp3/HttpUrl;->host()Ljava/lang/String; move-result-object v5 .line 427 invoke-virtual/range {p1 .. p1}, Lokhttp3/HttpUrl;->port()I move-result v6 .line 428 iget-object v2, v0, Lokhttp3/internal/connection/RealCall;->client:Lokhttp3/OkHttpClient; invoke-virtual {v2}, Lokhttp3/OkHttpClient;->dns()Lokhttp3/Dns; move-result-object v7 .line 429 iget-object v2, v0, Lokhttp3/internal/connection/RealCall;->client:Lokhttp3/OkHttpClient; invoke-virtual {v2}, Lokhttp3/OkHttpClient;->socketFactory()Ljavax/net/SocketFactory; move-result-object v8 .line 433 iget-object v2, v0, Lokhttp3/internal/connection/RealCall;->client:Lokhttp3/OkHttpClient; invoke-virtual {v2}, Lokhttp3/OkHttpClient;->proxyAuthenticator()Lokhttp3/Authenticator; move-result-object v12 .line 434 iget-object v2, v0, Lokhttp3/internal/connection/RealCall;->client:Lokhttp3/OkHttpClient; invoke-virtual {v2}, Lokhttp3/OkHttpClient;->proxy()Ljava/net/Proxy; move-result-object v13 .line 435 iget-object v2, v0, Lokhttp3/internal/connection/RealCall;->client:Lokhttp3/OkHttpClient; invoke-virtual {v2}, Lokhttp3/OkHttpClient;->protocols()Ljava/util/List; move-result-object v14 .line 436 iget-object v2, v0, Lokhttp3/internal/connection/RealCall;->client:Lokhttp3/OkHttpClient; invoke-virtual {v2}, Lokhttp3/OkHttpClient;->connectionSpecs()Ljava/util/List; move-result-object v15 .line 437 iget-object v2, v0, Lokhttp3/internal/connection/RealCall;->client:Lokhttp3/OkHttpClient; invoke-virtual {v2}, Lokhttp3/OkHttpClient;->proxySelector()Ljava/net/ProxySelector; move-result-object v16 move-object v4, v1 .line 425 invoke-direct/range {v4 .. v16}, Lokhttp3/Address;->(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 maybeReleaseConnection(Ljava/io/IOException;Z)Ljava/io/IOException; .registers 9 .annotation system Ldalvik/annotation/Signature; value = { "(TE;Z)TE;" } .end annotation .line 325 new-instance v0, Lkotlin/jvm/internal/Ref$ObjectRef; invoke-direct {v0}, Lkotlin/jvm/internal/Ref$ObjectRef;->()V .line 327 iget-object v1, p0, Lokhttp3/internal/connection/RealCall;->connectionPool:Lokhttp3/internal/connection/RealConnectionPool; monitor-enter v1 const/4 v2, 0x0 const/4 v3, 0x1 if-eqz p2, :cond_16 .line 328 :try_start_c iget-object v4, p0, Lokhttp3/internal/connection/RealCall;->exchange:Lokhttp3/internal/connection/Exchange; if-nez v4, :cond_11 goto :goto_16 :cond_11 move v4, v2 goto :goto_17 :catchall_13 move-exception p1 goto/16 :goto_97 :cond_16 :goto_16 move v4, v3 :goto_17 if-eqz v4, :cond_89 .line 329 iget-object v4, p0, Lokhttp3/internal/connection/RealCall;->connection:Lokhttp3/internal/connection/RealConnection; check-cast v4, Lokhttp3/Connection; iput-object v4, v0, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object; .line 330 iget-object v4, p0, Lokhttp3/internal/connection/RealCall;->connection:Lokhttp3/internal/connection/RealConnection; const/4 v5, 0x0 if-eqz v4, :cond_33 iget-object v4, p0, Lokhttp3/internal/connection/RealCall;->exchange:Lokhttp3/internal/connection/Exchange; if-nez v4, :cond_33 if-nez p2, :cond_2e iget-boolean p2, p0, Lokhttp3/internal/connection/RealCall;->noMoreExchanges:Z if-eqz p2, :cond_33 .line 331 :cond_2e invoke-virtual {p0}, Lokhttp3/internal/connection/RealCall;->releaseConnectionNoEvents$okhttp()Ljava/net/Socket; move-result-object p2 goto :goto_34 :cond_33 move-object p2, v5 .line 335 :goto_34 iget-object v4, p0, Lokhttp3/internal/connection/RealCall;->connection:Lokhttp3/internal/connection/RealConnection; if-eqz v4, :cond_3d move-object v4, v5 check-cast v4, Lokhttp3/Connection; iput-object v5, v0, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object; .line 336 :cond_3d iget-boolean v4, p0, Lokhttp3/internal/connection/RealCall;->noMoreExchanges:Z if-eqz v4, :cond_47 iget-object v4, p0, Lokhttp3/internal/connection/RealCall;->exchange:Lokhttp3/internal/connection/Exchange; if-nez v4, :cond_47 move v4, v3 goto :goto_48 :cond_47 move v4, v2 .line 337 :goto_48 sget-object v5, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit; :try_end_4a .catchall {:try_start_c .. :try_end_4a} :catchall_13 .line 327 monitor-exit v1 if-eqz p2, :cond_50 .line 338 invoke-static {p2}, Lokhttp3/internal/Util;->closeQuietly(Ljava/net/Socket;)V .line 340 :cond_50 iget-object p2, v0, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object; check-cast p2, Lokhttp3/Connection; if-eqz p2, :cond_67 .line 341 iget-object p2, p0, Lokhttp3/internal/connection/RealCall;->eventListener:Lokhttp3/EventListener; move-object v1, p0 check-cast v1, Lokhttp3/Call; iget-object v0, v0, Lkotlin/jvm/internal/Ref$ObjectRef;->element:Ljava/lang/Object; check-cast v0, Lokhttp3/Connection; if-nez v0, :cond_64 invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V :cond_64 invoke-virtual {p2, v1, v0}, Lokhttp3/EventListener;->connectionReleased(Lokhttp3/Call;Lokhttp3/Connection;)V :cond_67 if-eqz v4, :cond_88 if-eqz p1, :cond_6c move v2, v3 .line 346 :cond_6c invoke-direct {p0, p1}, Lokhttp3/internal/connection/RealCall;->timeoutExit(Ljava/io/IOException;)Ljava/io/IOException; move-result-object p1 if-eqz v2, :cond_80 .line 348 iget-object p2, p0, Lokhttp3/internal/connection/RealCall;->eventListener:Lokhttp3/EventListener; move-object v0, p0 check-cast v0, Lokhttp3/Call; if-nez p1, :cond_7c invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V :cond_7c invoke-virtual {p2, v0, p1}, Lokhttp3/EventListener;->callFailed(Lokhttp3/Call;Ljava/io/IOException;)V goto :goto_88 .line 350 :cond_80 iget-object p2, p0, Lokhttp3/internal/connection/RealCall;->eventListener:Lokhttp3/EventListener; move-object v0, p0 check-cast v0, Lokhttp3/Call; invoke-virtual {p2, v0}, Lokhttp3/EventListener;->callEnd(Lokhttp3/Call;)V :cond_88 :goto_88 return-object p1 .line 328 :cond_89 :try_start_89 const-string p1, "cannot release connection while it is in use" 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;->(Ljava/lang/String;)V check-cast p2, Ljava/lang/Throwable; throw p2 :try_end_97 .catchall {:try_start_89 .. :try_end_97} :catchall_13 .line 327 :goto_97 monitor-exit v1 throw p1 .end method .method private final timeoutExit(Ljava/io/IOException;)Ljava/io/IOException; .registers 4 .annotation system Ldalvik/annotation/Signature; value = { "(TE;)TE;" } .end annotation .line 381 iget-boolean v0, p0, Lokhttp3/internal/connection/RealCall;->timeoutEarlyExit:Z if-eqz v0, :cond_5 return-object p1 .line 382 :cond_5 iget-object v0, p0, Lokhttp3/internal/connection/RealCall;->timeout:Lokhttp3/internal/connection/RealCall$timeout$1; invoke-virtual {v0}, Lokhttp3/internal/connection/RealCall$timeout$1;->exit()Z move-result v0 if-nez v0, :cond_e return-object p1 .line 384 :cond_e new-instance v0, Ljava/io/InterruptedIOException; const-string v1, "timeout" invoke-direct {v0, v1}, Ljava/io/InterruptedIOException;->(Ljava/lang/String;)V if-eqz p1, :cond_1c .line 385 check-cast p1, Ljava/lang/Throwable; invoke-virtual {v0, p1}, Ljava/io/InterruptedIOException;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable; .line 387 :cond_1c check-cast v0, Ljava/io/IOException; return-object v0 .end method .method private final toLoggableString()Ljava/lang/String; .registers 3 .line 448 new-instance v0, Ljava/lang/StringBuilder; invoke-direct {v0}, Ljava/lang/StringBuilder;->()V invoke-virtual {p0}, Lokhttp3/internal/connection/RealCall;->isCanceled()Z move-result v1 if-eqz v1, :cond_e const-string v1, "canceled " goto :goto_10 :cond_e const-string v1, "" :goto_10 invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 .line 449 iget-boolean v1, p0, Lokhttp3/internal/connection/RealCall;->forWebSocket:Z if-eqz v1, :cond_1b const-string v1, "web socket" goto :goto_1d :cond_1b const-string v1, "call" :goto_1d 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 450 invoke-virtual {p0}, Lokhttp3/internal/connection/RealCall;->redactedUrl$okhttp()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 invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v0 return-object v0 .end method # virtual methods .method public final acquireConnectionNoEvents(Lokhttp3/internal/connection/RealConnection;)V .registers 6 const-string v0, "connection" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V .line 258 iget-object v0, p0, Lokhttp3/internal/connection/RealCall;->connectionPool:Lokhttp3/internal/connection/RealConnectionPool; .line 537 sget-boolean v1, Lokhttp3/internal/Util;->assertionsEnabled:Z if-eqz v1, :cond_40 invoke-static {v0}, Ljava/lang/Thread;->holdsLock(Ljava/lang/Object;)Z move-result v1 if-eqz v1, :cond_12 goto :goto_40 .line 538 :cond_12 new-instance p1, Ljava/lang/AssertionError; new-instance v1, Ljava/lang/StringBuilder; const-string v2, "Thread " invoke-direct {v1, v2}, Ljava/lang/StringBuilder;->(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;->checkExpressionValueIsNotNull(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 {p1, v0}, Ljava/lang/AssertionError;->(Ljava/lang/Object;)V check-cast p1, Ljava/lang/Throwable; throw p1 .line 260 :cond_40 :goto_40 iget-object v0, p0, Lokhttp3/internal/connection/RealCall;->connection:Lokhttp3/internal/connection/RealConnection; if-nez v0, :cond_46 const/4 v0, 0x1 goto :goto_47 :cond_46 const/4 v0, 0x0 :goto_47 if-eqz v0, :cond_5a .line 261 iput-object p1, p0, Lokhttp3/internal/connection/RealCall;->connection:Lokhttp3/internal/connection/RealConnection; .line 262 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;->(Lokhttp3/internal/connection/RealCall;Ljava/lang/Object;)V invoke-interface {p1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z return-void .line 260 :cond_5a new-instance p1, Ljava/lang/IllegalStateException; const-string v0, "Check failed." invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object v0 invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V check-cast p1, Ljava/lang/Throwable; throw p1 .end method .method public cancel()V .registers 5 .line 123 iget-object v0, p0, Lokhttp3/internal/connection/RealCall;->connectionPool:Lokhttp3/internal/connection/RealConnectionPool; monitor-enter v0 .line 124 :try_start_3 iget-boolean v1, p0, Lokhttp3/internal/connection/RealCall;->canceled:Z :try_end_5 .catchall {:try_start_3 .. :try_end_5} :catchall_32 if-eqz v1, :cond_9 monitor-exit v0 return-void :cond_9 const/4 v1, 0x1 .line 125 :try_start_a iput-boolean v1, p0, Lokhttp3/internal/connection/RealCall;->canceled:Z .line 126 iget-object v1, p0, Lokhttp3/internal/connection/RealCall;->exchange:Lokhttp3/internal/connection/Exchange; .line 127 iget-object v2, p0, Lokhttp3/internal/connection/RealCall;->exchangeFinder:Lokhttp3/internal/connection/ExchangeFinder; if-eqz v2, :cond_19 invoke-virtual {v2}, Lokhttp3/internal/connection/ExchangeFinder;->connectingConnection()Lokhttp3/internal/connection/RealConnection; move-result-object v2 if-eqz v2, :cond_19 goto :goto_1b :cond_19 iget-object v2, p0, Lokhttp3/internal/connection/RealCall;->connection:Lokhttp3/internal/connection/RealConnection; .line 128 :goto_1b sget-object v3, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit; :try_end_1d .catchall {:try_start_a .. :try_end_1d} :catchall_32 .line 123 monitor-exit v0 if-eqz v1, :cond_24 .line 129 invoke-virtual {v1}, Lokhttp3/internal/connection/Exchange;->cancel()V goto :goto_29 :cond_24 if-eqz v2, :cond_29 invoke-virtual {v2}, Lokhttp3/internal/connection/RealConnection;->cancel()V .line 130 :cond_29 :goto_29 iget-object v0, p0, Lokhttp3/internal/connection/RealCall;->eventListener:Lokhttp3/EventListener; move-object v1, p0 check-cast v1, Lokhttp3/Call; invoke-virtual {v0, v1}, Lokhttp3/EventListener;->canceled(Lokhttp3/Call;)V return-void :catchall_32 move-exception v1 .line 123 monitor-exit v0 throw v1 .end method .method public bridge synthetic clone()Ljava/lang/Object; .registers 2 .line 60 invoke-virtual {p0}, Lokhttp3/internal/connection/RealCall;->clone()Lokhttp3/internal/connection/RealCall; move-result-object v0 return-object v0 .end method .method public bridge synthetic clone()Lokhttp3/Call; .registers 2 .line 60 invoke-virtual {p0}, Lokhttp3/internal/connection/RealCall;->clone()Lokhttp3/internal/connection/RealCall; move-result-object v0 check-cast v0, Lokhttp3/Call; return-object v0 .end method .method public clone()Lokhttp3/internal/connection/RealCall; .registers 5 .line 107 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 v3, p0, Lokhttp3/internal/connection/RealCall;->forWebSocket:Z invoke-direct {v0, v1, v2, v3}, Lokhttp3/internal/connection/RealCall;->(Lokhttp3/OkHttpClient;Lokhttp3/Request;Z)V return-object v0 .end method .method public enqueue(Lokhttp3/Callback;)V .registers 4 const-string v0, "responseCallback" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V .line 155 monitor-enter p0 .line 156 :try_start_6 iget-boolean v0, p0, Lokhttp3/internal/connection/RealCall;->executed:Z if-nez v0, :cond_22 const/4 v0, 0x1 .line 157 iput-boolean v0, p0, Lokhttp3/internal/connection/RealCall;->executed:Z .line 158 sget-object v0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit; :try_end_f .catchall {:try_start_6 .. :try_end_f} :catchall_30 .line 155 monitor-exit p0 .line 159 invoke-direct {p0}, Lokhttp3/internal/connection/RealCall;->callStart()V .line 160 iget-object v0, p0, Lokhttp3/internal/connection/RealCall;->client:Lokhttp3/OkHttpClient; 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;->(Lokhttp3/internal/connection/RealCall;Lokhttp3/Callback;)V invoke-virtual {v0, v1}, Lokhttp3/Dispatcher;->enqueue$okhttp(Lokhttp3/internal/connection/RealCall$AsyncCall;)V return-void .line 156 :cond_22 :try_start_22 const-string p1, "Already Executed" 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;->(Ljava/lang/String;)V check-cast v0, Ljava/lang/Throwable; throw v0 :try_end_30 .catchall {:try_start_22 .. :try_end_30} :catchall_30 :catchall_30 move-exception p1 .line 155 monitor-exit p0 throw p1 .end method .method public final enterNetworkInterceptorExchange(Lokhttp3/Request;Z)V .registers 6 const-string v0, "request" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V .line 222 iget-object v0, p0, Lokhttp3/internal/connection/RealCall;->interceptorScopedExchange:Lokhttp3/internal/connection/Exchange; const/4 v1, 0x1 const/4 v2, 0x0 if-nez v0, :cond_d move v0, v1 goto :goto_e :cond_d move v0, v2 :goto_e if-eqz v0, :cond_3c .line 223 iget-object v0, p0, Lokhttp3/internal/connection/RealCall;->exchange:Lokhttp3/internal/connection/Exchange; if-nez v0, :cond_15 goto :goto_16 :cond_15 move v1, v2 :goto_16 if-eqz v1, :cond_2e if-eqz p2, :cond_2d .line 229 new-instance p2, Lokhttp3/internal/connection/ExchangeFinder; .line 230 iget-object v0, p0, Lokhttp3/internal/connection/RealCall;->connectionPool:Lokhttp3/internal/connection/RealConnectionPool; .line 231 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 .line 233 iget-object v1, p0, Lokhttp3/internal/connection/RealCall;->eventListener:Lokhttp3/EventListener; .line 229 invoke-direct {p2, v0, p1, p0, v1}, Lokhttp3/internal/connection/ExchangeFinder;->(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_2d return-void .line 223 :cond_2e new-instance p1, Ljava/lang/IllegalStateException; const-string p2, "cannot make a new request because the previous response is still open: please call response.close()" invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p2 invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V check-cast p1, Ljava/lang/Throwable; throw p1 .line 222 :cond_3c new-instance p1, Ljava/lang/IllegalStateException; const-string p2, "Check failed." invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p2 invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V check-cast p1, Ljava/lang/Throwable; throw p1 .end method .method public execute()Lokhttp3/Response; .registers 3 .line 140 monitor-enter p0 .line 141 :try_start_1 iget-boolean v0, p0, Lokhttp3/internal/connection/RealCall;->executed:Z if-nez v0, :cond_35 const/4 v0, 0x1 .line 142 iput-boolean v0, p0, Lokhttp3/internal/connection/RealCall;->executed:Z .line 143 sget-object v0, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit; :try_end_a .catchall {:try_start_1 .. :try_end_a} :catchall_43 .line 140 monitor-exit p0 .line 144 iget-object v0, p0, Lokhttp3/internal/connection/RealCall;->timeout:Lokhttp3/internal/connection/RealCall$timeout$1; invoke-virtual {v0}, Lokhttp3/internal/connection/RealCall$timeout$1;->enter()V .line 145 invoke-direct {p0}, Lokhttp3/internal/connection/RealCall;->callStart()V .line 147 :try_start_13 iget-object v0, p0, Lokhttp3/internal/connection/RealCall;->client:Lokhttp3/OkHttpClient; 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 148 invoke-virtual {p0}, Lokhttp3/internal/connection/RealCall;->getResponseWithInterceptorChain$okhttp()Lokhttp3/Response; move-result-object v0 :try_end_20 .catchall {:try_start_13 .. :try_end_20} :catchall_2a .line 150 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 return-object v0 :catchall_2a 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 141 :cond_35 :try_start_35 const-string v0, "Already Executed" new-instance v1, Ljava/lang/IllegalStateException; invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object v0 invoke-direct {v1, v0}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V check-cast v1, Ljava/lang/Throwable; throw v1 :try_end_43 .catchall {:try_start_35 .. :try_end_43} :catchall_43 :catchall_43 move-exception v0 .line 140 monitor-exit p0 throw v0 .end method .method public final exitNetworkInterceptorExchange$okhttp(Z)V .registers 3 .line 405 iget-boolean v0, p0, Lokhttp3/internal/connection/RealCall;->noMoreExchanges:Z if-nez v0, :cond_2c if-eqz p1, :cond_25 .line 408 iget-object p1, p0, Lokhttp3/internal/connection/RealCall;->exchange:Lokhttp3/internal/connection/Exchange; if-eqz p1, :cond_d invoke-virtual {p1}, Lokhttp3/internal/connection/Exchange;->detachWithViolence()V .line 409 :cond_d iget-object p1, p0, Lokhttp3/internal/connection/RealCall;->exchange:Lokhttp3/internal/connection/Exchange; if-nez p1, :cond_13 const/4 p1, 0x1 goto :goto_14 :cond_13 const/4 p1, 0x0 :goto_14 if-eqz p1, :cond_17 goto :goto_25 :cond_17 new-instance p1, Ljava/lang/IllegalStateException; const-string v0, "Check failed." invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object v0 invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V check-cast p1, Ljava/lang/Throwable; throw p1 :cond_25 :goto_25 const/4 p1, 0x0 .line 412 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 .line 405 :cond_2c new-instance p1, Ljava/lang/IllegalStateException; const-string v0, "released" invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object v0 invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V check-cast p1, Ljava/lang/Throwable; throw p1 .end method .method public final getClient()Lokhttp3/OkHttpClient; .registers 2 .line 61 iget-object v0, p0, Lokhttp3/internal/connection/RealCall;->client:Lokhttp3/OkHttpClient; return-object v0 .end method .method public final getConnection()Lokhttp3/internal/connection/RealConnection; .registers 2 .line 85 iget-object v0, p0, Lokhttp3/internal/connection/RealCall;->connection:Lokhttp3/internal/connection/RealConnection; return-object v0 .end method .method public final getForWebSocket()Z .registers 2 .line 64 iget-boolean v0, p0, Lokhttp3/internal/connection/RealCall;->forWebSocket:Z return v0 .end method .method public final getInterceptorScopedExchange$okhttp()Lokhttp3/internal/connection/Exchange; .registers 2 .line 101 iget-object v0, p0, Lokhttp3/internal/connection/RealCall;->interceptorScopedExchange:Lokhttp3/internal/connection/Exchange; return-object v0 .end method .method public final getOriginalRequest()Lokhttp3/Request; .registers 2 .line 63 iget-object v0, p0, Lokhttp3/internal/connection/RealCall;->originalRequest:Lokhttp3/Request; return-object v0 .end method .method public final getResponseWithInterceptorChain$okhttp()Lokhttp3/Response; .registers 11 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 173 new-instance v0, Ljava/util/ArrayList; invoke-direct {v0}, Ljava/util/ArrayList;->()V move-object v3, v0 check-cast v3, Ljava/util/List; .line 174 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 175 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;->(Lokhttp3/OkHttpClient;)V invoke-interface {v0, v1}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z .line 176 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;->(Lokhttp3/CookieJar;)V invoke-interface {v0, v1}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z .line 177 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;->(Lokhttp3/Cache;)V invoke-interface {v0, v1}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z .line 178 sget-object v1, Lokhttp3/internal/connection/ConnectInterceptor;->INSTANCE:Lokhttp3/internal/connection/ConnectInterceptor; invoke-interface {v0, v1}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z .line 179 iget-boolean v1, p0, Lokhttp3/internal/connection/RealCall;->forWebSocket:Z if-nez v1, :cond_50 .line 180 iget-object v1, p0, Lokhttp3/internal/connection/RealCall;->client:Lokhttp3/OkHttpClient; 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 182 :cond_50 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;->(Z)V invoke-interface {v0, v1}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z .line 184 new-instance v0, Lokhttp3/internal/http/RealInterceptorChain; .line 189 iget-object v6, p0, Lokhttp3/internal/connection/RealCall;->originalRequest:Lokhttp3/Request; .line 190 iget-object v1, p0, Lokhttp3/internal/connection/RealCall;->client:Lokhttp3/OkHttpClient; invoke-virtual {v1}, Lokhttp3/OkHttpClient;->connectTimeoutMillis()I move-result v7 .line 191 iget-object v1, p0, Lokhttp3/internal/connection/RealCall;->client:Lokhttp3/OkHttpClient; invoke-virtual {v1}, Lokhttp3/OkHttpClient;->readTimeoutMillis()I move-result v8 .line 192 iget-object v1, p0, Lokhttp3/internal/connection/RealCall;->client:Lokhttp3/OkHttpClient; invoke-virtual {v1}, Lokhttp3/OkHttpClient;->writeTimeoutMillis()I move-result v9 const/4 v4, 0x0 const/4 v5, 0x0 move-object v1, v0 move-object v2, p0 .line 184 invoke-direct/range {v1 .. v9}, Lokhttp3/internal/http/RealInterceptorChain;->(Lokhttp3/internal/connection/RealCall;Ljava/util/List;ILokhttp3/internal/connection/Exchange;Lokhttp3/Request;III)V const/4 v1, 0x0 const/4 v2, 0x0 .line 197 :try_start_79 iget-object v3, p0, Lokhttp3/internal/connection/RealCall;->originalRequest:Lokhttp3/Request; invoke-virtual {v0, v3}, Lokhttp3/internal/http/RealInterceptorChain;->proceed(Lokhttp3/Request;)Lokhttp3/Response; move-result-object v0 .line 198 invoke-virtual {p0}, Lokhttp3/internal/connection/RealCall;->isCanceled()Z move-result v3 :try_end_83 .catch Ljava/io/IOException; {:try_start_79 .. :try_end_83} :catch_9a .catchall {:try_start_79 .. :try_end_83} :catchall_98 if-nez v3, :cond_89 .line 208 invoke-virtual {p0, v1}, Lokhttp3/internal/connection/RealCall;->noMoreExchanges$okhttp(Ljava/io/IOException;)Ljava/io/IOException; return-object v0 .line 199 :cond_89 :try_start_89 check-cast v0, Ljava/io/Closeable; invoke-static {v0}, Lokhttp3/internal/Util;->closeQuietly(Ljava/io/Closeable;)V .line 200 new-instance v0, Ljava/io/IOException; const-string v3, "Canceled" invoke-direct {v0, v3}, Ljava/io/IOException;->(Ljava/lang/String;)V check-cast v0, Ljava/lang/Throwable; throw v0 :try_end_98 .catch Ljava/io/IOException; {:try_start_89 .. :try_end_98} :catch_9a .catchall {:try_start_89 .. :try_end_98} :catchall_98 :catchall_98 move-exception v0 goto :goto_ad :catch_9a move-exception v0 const/4 v2, 0x1 .line 205 :try_start_9c invoke-virtual {p0, v0}, Lokhttp3/internal/connection/RealCall;->noMoreExchanges$okhttp(Ljava/io/IOException;)Ljava/io/IOException; move-result-object v0 if-nez v0, :cond_aa new-instance v0, Lkotlin/TypeCastException; const-string v3, "null cannot be cast to non-null type kotlin.Throwable" invoke-direct {v0, v3}, Lkotlin/TypeCastException;->(Ljava/lang/String;)V throw v0 :cond_aa check-cast v0, Ljava/lang/Throwable; throw v0 :try_end_ad .catchall {:try_start_9c .. :try_end_ad} :catchall_98 :goto_ad if-nez v2, :cond_b2 .line 208 invoke-virtual {p0, v1}, Lokhttp3/internal/connection/RealCall;->noMoreExchanges$okhttp(Ljava/io/IOException;)Ljava/io/IOException; :cond_b2 throw v0 .end method .method public final initExchange$okhttp(Lokhttp3/internal/http/RealInterceptorChain;)Lokhttp3/internal/connection/Exchange; .registers 6 const-string v0, "chain" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V .line 240 iget-object v0, p0, Lokhttp3/internal/connection/RealCall;->connectionPool:Lokhttp3/internal/connection/RealConnectionPool; monitor-enter v0 .line 241 :try_start_8 iget-boolean v1, p0, Lokhttp3/internal/connection/RealCall;->noMoreExchanges:Z if-nez v1, :cond_52 .line 242 iget-object v1, p0, Lokhttp3/internal/connection/RealCall;->exchange:Lokhttp3/internal/connection/Exchange; const/4 v2, 0x0 if-nez v1, :cond_13 const/4 v1, 0x1 goto :goto_14 :cond_13 move v1, v2 :goto_14 if-eqz v1, :cond_44 .line 243 sget-object v1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit; :try_end_18 .catchall {:try_start_8 .. :try_end_18} :catchall_60 .line 240 monitor-exit v0 .line 245 iget-object v0, p0, Lokhttp3/internal/connection/RealCall;->exchangeFinder:Lokhttp3/internal/connection/ExchangeFinder; if-nez v0, :cond_20 invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V :cond_20 iget-object v1, p0, Lokhttp3/internal/connection/RealCall;->client:Lokhttp3/OkHttpClient; invoke-virtual {v0, v1, p1}, Lokhttp3/internal/connection/ExchangeFinder;->find(Lokhttp3/OkHttpClient;Lokhttp3/internal/http/RealInterceptorChain;)Lokhttp3/internal/http/ExchangeCodec; move-result-object p1 .line 246 new-instance v0, Lokhttp3/internal/connection/Exchange; iget-object v1, p0, Lokhttp3/internal/connection/RealCall;->eventListener:Lokhttp3/EventListener; iget-object v3, p0, Lokhttp3/internal/connection/RealCall;->exchangeFinder:Lokhttp3/internal/connection/ExchangeFinder; if-nez v3, :cond_31 invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V :cond_31 invoke-direct {v0, p0, v1, v3, p1}, Lokhttp3/internal/connection/Exchange;->(Lokhttp3/internal/connection/RealCall;Lokhttp3/EventListener;Lokhttp3/internal/connection/ExchangeFinder;Lokhttp3/internal/http/ExchangeCodec;)V .line 247 iput-object v0, p0, Lokhttp3/internal/connection/RealCall;->interceptorScopedExchange:Lokhttp3/internal/connection/Exchange; .line 249 iget-object p1, p0, Lokhttp3/internal/connection/RealCall;->connectionPool:Lokhttp3/internal/connection/RealConnectionPool; monitor-enter p1 .line 250 :try_start_39 iput-object v0, p0, Lokhttp3/internal/connection/RealCall;->exchange:Lokhttp3/internal/connection/Exchange; .line 251 iput-boolean v2, p0, Lokhttp3/internal/connection/RealCall;->exchangeRequestDone:Z .line 252 iput-boolean v2, p0, Lokhttp3/internal/connection/RealCall;->exchangeResponseDone:Z :try_end_3f .catchall {:try_start_39 .. :try_end_3f} :catchall_41 .line 253 monitor-exit p1 return-object v0 :catchall_41 move-exception v0 .line 249 monitor-exit p1 throw v0 .line 242 :cond_44 :try_start_44 const-string p1, "Check failed." new-instance v1, Ljava/lang/IllegalStateException; invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {v1, p1}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V check-cast v1, Ljava/lang/Throwable; throw v1 .line 241 :cond_52 const-string p1, "released" new-instance v1, Ljava/lang/IllegalStateException; invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {v1, p1}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V check-cast v1, Ljava/lang/Throwable; throw v1 :try_end_60 .catchall {:try_start_44 .. :try_end_60} :catchall_60 :catchall_60 move-exception p1 .line 240 monitor-exit v0 throw p1 .end method .method public isCanceled()Z .registers 3 .line 134 iget-object v0, p0, Lokhttp3/internal/connection/RealCall;->connectionPool:Lokhttp3/internal/connection/RealConnectionPool; monitor-enter v0 .line 135 :try_start_3 iget-boolean v1, p0, Lokhttp3/internal/connection/RealCall;->canceled:Z :try_end_5 .catchall {:try_start_3 .. :try_end_5} :catchall_7 monitor-exit v0 return v1 :catchall_7 move-exception v1 .line 134 monitor-exit v0 throw v1 .end method .method public declared-synchronized isExecuted()Z .registers 2 monitor-enter p0 .line 163 :try_start_1 iget-boolean v0, p0, Lokhttp3/internal/connection/RealCall;->executed:Z :try_end_3 .catchall {:try_start_1 .. :try_end_3} :catchall_5 monitor-exit p0 return v0 :catchall_5 move-exception v0 :try_start_6 monitor-exit p0 :try_end_7 .catchall {:try_start_6 .. :try_end_7} :catchall_5 throw v0 .end method .method public final messageDone$okhttp(Lokhttp3/internal/connection/Exchange;ZZLjava/io/IOException;)Ljava/io/IOException; .registers 7 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lokhttp3/internal/connection/Exchange;", "ZZTE;)TE;" } .end annotation const-string v0, "exchange" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V .line 281 iget-object v0, p0, Lokhttp3/internal/connection/RealCall;->connectionPool:Lokhttp3/internal/connection/RealConnectionPool; monitor-enter v0 .line 282 :try_start_8 iget-object v1, p0, Lokhttp3/internal/connection/RealCall;->exchange:Lokhttp3/internal/connection/Exchange; invoke-static {p1, v1}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z move-result p1 :try_end_e .catchall {:try_start_8 .. :try_end_e} :catchall_55 if-nez p1, :cond_12 .line 283 monitor-exit v0 return-object p4 :cond_12 const/4 p1, 0x1 const/4 v1, 0x0 if-eqz p2, :cond_1c .line 287 :try_start_16 iget-boolean p2, p0, Lokhttp3/internal/connection/RealCall;->exchangeRequestDone:Z xor-int/2addr p2, p1 .line 288 iput-boolean p1, p0, Lokhttp3/internal/connection/RealCall;->exchangeRequestDone:Z goto :goto_1d :cond_1c move p2, v1 :goto_1d if-eqz p3, :cond_26 .line 291 iget-boolean p3, p0, Lokhttp3/internal/connection/RealCall;->exchangeResponseDone:Z if-nez p3, :cond_24 move p2, p1 .line 292 :cond_24 iput-boolean p1, p0, Lokhttp3/internal/connection/RealCall;->exchangeResponseDone:Z .line 294 :cond_26 iget-boolean p3, p0, Lokhttp3/internal/connection/RealCall;->exchangeRequestDone:Z if-eqz p3, :cond_4a iget-boolean p3, p0, Lokhttp3/internal/connection/RealCall;->exchangeResponseDone:Z if-eqz p3, :cond_4a if-eqz p2, :cond_4a .line 296 iget-object p2, p0, Lokhttp3/internal/connection/RealCall;->exchange:Lokhttp3/internal/connection/Exchange; if-nez p2, :cond_37 invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V :cond_37 invoke-virtual {p2}, Lokhttp3/internal/connection/Exchange;->getConnection$okhttp()Lokhttp3/internal/connection/RealConnection; move-result-object p2 invoke-virtual {p2}, Lokhttp3/internal/connection/RealConnection;->getSuccessCount$okhttp()I move-result p3 add-int/2addr p3, p1 invoke-virtual {p2, p3}, Lokhttp3/internal/connection/RealConnection;->setSuccessCount$okhttp(I)V const/4 p2, 0x0 .line 297 move-object p3, p2 check-cast p3, Lokhttp3/internal/connection/Exchange; iput-object p2, p0, Lokhttp3/internal/connection/RealCall;->exchange:Lokhttp3/internal/connection/Exchange; goto :goto_4b :cond_4a move p1, v1 .line 299 :goto_4b sget-object p2, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit; :try_end_4d .catchall {:try_start_16 .. :try_end_4d} :catchall_55 .line 281 monitor-exit v0 if-eqz p1, :cond_54 .line 301 invoke-direct {p0, p4, v1}, Lokhttp3/internal/connection/RealCall;->maybeReleaseConnection(Ljava/io/IOException;Z)Ljava/io/IOException; move-result-object p4 :cond_54 return-object p4 :catchall_55 move-exception p1 .line 281 monitor-exit v0 throw p1 .end method .method public final noMoreExchanges$okhttp(Ljava/io/IOException;)Ljava/io/IOException; .registers 4 .line 307 iget-object v0, p0, Lokhttp3/internal/connection/RealCall;->connectionPool:Lokhttp3/internal/connection/RealConnectionPool; monitor-enter v0 const/4 v1, 0x1 .line 308 :try_start_4 iput-boolean v1, p0, Lokhttp3/internal/connection/RealCall;->noMoreExchanges:Z .line 309 sget-object v1, Lkotlin/Unit;->INSTANCE:Lkotlin/Unit; :try_end_8 .catchall {:try_start_4 .. :try_end_8} :catchall_f .line 307 monitor-exit v0 const/4 v0, 0x0 .line 310 invoke-direct {p0, p1, v0}, Lokhttp3/internal/connection/RealCall;->maybeReleaseConnection(Ljava/io/IOException;Z)Ljava/io/IOException; move-result-object p1 return-object p1 :catchall_f move-exception p1 .line 307 monitor-exit v0 throw p1 .end method .method public final redactedUrl$okhttp()Ljava/lang/String; .registers 2 .line 453 iget-object v0, p0, Lokhttp3/internal/connection/RealCall;->originalRequest:Lokhttp3/Request; invoke-virtual {v0}, Lokhttp3/Request;->url()Lokhttp3/HttpUrl; move-result-object v0 invoke-virtual {v0}, Lokhttp3/HttpUrl;->redact()Ljava/lang/String; move-result-object v0 return-object v0 .end method .method public final releaseConnectionNoEvents$okhttp()Ljava/net/Socket; .registers 7 .line 361 iget-object v0, p0, Lokhttp3/internal/connection/RealCall;->connectionPool:Lokhttp3/internal/connection/RealConnectionPool; .line 541 sget-boolean v1, Lokhttp3/internal/Util;->assertionsEnabled:Z if-eqz v1, :cond_3b invoke-static {v0}, Ljava/lang/Thread;->holdsLock(Ljava/lang/Object;)Z move-result v1 if-eqz v1, :cond_d goto :goto_3b .line 542 :cond_d new-instance v1, Ljava/lang/AssertionError; new-instance v2, Ljava/lang/StringBuilder; const-string v3, "Thread " invoke-direct {v2, v3}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread; move-result-object v3 const-string v4, "Thread.currentThread()" invoke-static {v3, v4}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V invoke-virtual {v3}, Ljava/lang/Thread;->getName()Ljava/lang/String; move-result-object v3 invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v2 const-string v3, " MUST hold lock on " invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v2 invoke-virtual {v2, 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 {v1, v0}, Ljava/lang/AssertionError;->(Ljava/lang/Object;)V check-cast v1, Ljava/lang/Throwable; throw v1 .line 363 :cond_3b :goto_3b iget-object v0, p0, Lokhttp3/internal/connection/RealCall;->connection:Lokhttp3/internal/connection/RealConnection; if-nez v0, :cond_42 invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V :cond_42 invoke-virtual {v0}, Lokhttp3/internal/connection/RealConnection;->getCalls()Ljava/util/List; move-result-object v0 .line 546 invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator; move-result-object v0 const/4 v1, 0x0 move v2, v1 :goto_4c invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z move-result v3 const/4 v4, -0x1 if-eqz v3, :cond_6c invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v3 .line 547 check-cast v3, Ljava/lang/ref/Reference; .line 363 invoke-virtual {v3}, Ljava/lang/ref/Reference;->get()Ljava/lang/Object; move-result-object v3 check-cast v3, Lokhttp3/internal/connection/RealCall; move-object v5, p0 check-cast v5, Lokhttp3/internal/connection/RealCall; invoke-static {v3, p0}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z move-result v3 if-eqz v3, :cond_69 goto :goto_6d :cond_69 add-int/lit8 v2, v2, 0x1 goto :goto_4c :cond_6c move v2, v4 :goto_6d if-eq v2, v4, :cond_70 const/4 v1, 0x1 :cond_70 if-eqz v1, :cond_a5 .line 366 iget-object v0, p0, Lokhttp3/internal/connection/RealCall;->connection:Lokhttp3/internal/connection/RealConnection; if-nez v0, :cond_79 .line 367 invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V :cond_79 invoke-virtual {v0}, Lokhttp3/internal/connection/RealConnection;->getCalls()Ljava/util/List; move-result-object v1 invoke-interface {v1, v2}, Ljava/util/List;->remove(I)Ljava/lang/Object; const/4 v1, 0x0 .line 368 move-object v2, v1 check-cast v2, Lokhttp3/internal/connection/RealConnection; iput-object v1, p0, Lokhttp3/internal/connection/RealCall;->connection:Lokhttp3/internal/connection/RealConnection; .line 370 invoke-virtual {v0}, Lokhttp3/internal/connection/RealConnection;->getCalls()Ljava/util/List; move-result-object v2 invoke-interface {v2}, Ljava/util/List;->isEmpty()Z move-result v2 if-eqz v2, :cond_a4 .line 371 invoke-static {}, Ljava/lang/System;->nanoTime()J move-result-wide v2 invoke-virtual {v0, v2, v3}, Lokhttp3/internal/connection/RealConnection;->setIdleAtNs$okhttp(J)V .line 372 iget-object v2, p0, Lokhttp3/internal/connection/RealCall;->connectionPool:Lokhttp3/internal/connection/RealConnectionPool; invoke-virtual {v2, v0}, Lokhttp3/internal/connection/RealConnectionPool;->connectionBecameIdle(Lokhttp3/internal/connection/RealConnection;)Z move-result v2 if-eqz v2, :cond_a4 .line 373 invoke-virtual {v0}, Lokhttp3/internal/connection/RealConnection;->socket()Ljava/net/Socket; move-result-object v0 return-object v0 :cond_a4 return-object v1 .line 364 :cond_a5 new-instance v0, Ljava/lang/IllegalStateException; const-string v1, "Check failed." invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object v1 invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V check-cast v0, Ljava/lang/Throwable; throw v0 .end method .method public request()Lokhttp3/Request; .registers 2 .line 109 iget-object v0, p0, Lokhttp3/internal/connection/RealCall;->originalRequest:Lokhttp3/Request; return-object v0 .end method .method public final retryAfterFailure()Z .registers 2 .line 441 iget-object v0, p0, Lokhttp3/internal/connection/RealCall;->exchangeFinder:Lokhttp3/internal/connection/ExchangeFinder; if-nez v0, :cond_7 invoke-static {}, Lkotlin/jvm/internal/Intrinsics;->throwNpe()V :cond_7 invoke-virtual {v0}, Lokhttp3/internal/connection/ExchangeFinder;->retryAfterFailure()Z move-result v0 return v0 .end method .method public final setConnection(Lokhttp3/internal/connection/RealConnection;)V .registers 2 .line 85 iput-object p1, p0, Lokhttp3/internal/connection/RealCall;->connection:Lokhttp3/internal/connection/RealConnection; return-void .end method .method public timeout()Lokio/AsyncTimeout; .registers 2 .line 104 iget-object v0, p0, Lokhttp3/internal/connection/RealCall;->timeout:Lokhttp3/internal/connection/RealCall$timeout$1; check-cast v0, Lokio/AsyncTimeout; return-object v0 .end method .method public bridge synthetic timeout()Lokio/Timeout; .registers 2 .line 60 invoke-virtual {p0}, Lokhttp3/internal/connection/RealCall;->timeout()Lokio/AsyncTimeout; move-result-object v0 check-cast v0, Lokio/Timeout; return-object v0 .end method .method public final timeoutEarlyExit()V .registers 3 .line 395 iget-boolean v0, p0, Lokhttp3/internal/connection/RealCall;->timeoutEarlyExit:Z if-nez v0, :cond_d const/4 v0, 0x1 .line 396 iput-boolean v0, p0, Lokhttp3/internal/connection/RealCall;->timeoutEarlyExit:Z .line 397 iget-object v0, p0, Lokhttp3/internal/connection/RealCall;->timeout:Lokhttp3/internal/connection/RealCall$timeout$1; invoke-virtual {v0}, Lokhttp3/internal/connection/RealCall$timeout$1;->exit()Z return-void .line 395 :cond_d new-instance v0, Ljava/lang/IllegalStateException; const-string v1, "Check failed." invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object v1 invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V check-cast v0, Ljava/lang/Throwable; throw v0 .end method