.class public final Lokhttp3/internal/b/c; .super Lokhttp3/internal/e/g$b; .source "RealConnection.java" # interfaces .implements Lokhttp3/i; # instance fields .field private bnO:Lokhttp3/u; .field public bnP:Lokhttp3/r; .field public bnZ:Lokio/d; .field private final bnf:Lokhttp3/j; .field public final bpk:Lokhttp3/y; .field public bpl:Ljava/net/Socket; .field public bpm:Ljava/net/Socket; .field bpn:Lokhttp3/internal/e/g; .field public bpo:Lokio/BufferedSink; .field public bpp:Z .field public bpq:I .field public bpr:I .field public final bps:Ljava/util/List; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/List<", "Ljava/lang/ref/Reference<", "Lokhttp3/internal/b/g;", ">;>;" } .end annotation .end field .field public bpt:J # direct methods .method public constructor (Lokhttp3/j;Lokhttp3/y;)V .locals 2 invoke-direct {p0}, Lokhttp3/internal/e/g$b;->()V const/4 v0, 0x1 iput v0, p0, Lokhttp3/internal/b/c;->bpr:I new-instance v0, Ljava/util/ArrayList; invoke-direct {v0}, Ljava/util/ArrayList;->()V iput-object v0, p0, Lokhttp3/internal/b/c;->bps:Ljava/util/List; const-wide v0, 0x7fffffffffffffffL iput-wide v0, p0, Lokhttp3/internal/b/c;->bpt:J iput-object p1, p0, Lokhttp3/internal/b/c;->bnf:Lokhttp3/j; iput-object p2, p0, Lokhttp3/internal/b/c;->bpk:Lokhttp3/y; return-void .end method .method private ab(II)V .locals 4 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation iget-object v0, p0, Lokhttp3/internal/b/c;->bpk:Lokhttp3/y; iget-object v0, v0, Lokhttp3/y;->biH:Ljava/net/Proxy; iget-object v1, p0, Lokhttp3/internal/b/c;->bpk:Lokhttp3/y; iget-object v1, v1, Lokhttp3/y;->bob:Lokhttp3/a; invoke-virtual {v0}, Ljava/net/Proxy;->type()Ljava/net/Proxy$Type; move-result-object v2 sget-object v3, Ljava/net/Proxy$Type;->DIRECT:Ljava/net/Proxy$Type; if-eq v2, v3, :cond_1 invoke-virtual {v0}, Ljava/net/Proxy;->type()Ljava/net/Proxy$Type; move-result-object v2 sget-object v3, Ljava/net/Proxy$Type;->HTTP:Ljava/net/Proxy$Type; if-ne v2, v3, :cond_0 goto :goto_0 :cond_0 new-instance v1, Ljava/net/Socket; invoke-direct {v1, v0}, Ljava/net/Socket;->(Ljava/net/Proxy;)V goto :goto_1 :cond_1 :goto_0 iget-object v0, v1, Lokhttp3/a;->biD:Ljavax/net/SocketFactory; invoke-virtual {v0}, Ljavax/net/SocketFactory;->createSocket()Ljava/net/Socket; move-result-object v1 :goto_1 iput-object v1, p0, Lokhttp3/internal/b/c;->bpl:Ljava/net/Socket; iget-object v0, p0, Lokhttp3/internal/b/c;->bpl:Ljava/net/Socket; invoke-virtual {v0, p2}, Ljava/net/Socket;->setSoTimeout(I)V :try_start_0 invoke-static {}, Lokhttp3/internal/g/f;->BI()Lokhttp3/internal/g/f; move-result-object p2 iget-object v0, p0, Lokhttp3/internal/b/c;->bpl:Ljava/net/Socket; iget-object v1, p0, Lokhttp3/internal/b/c;->bpk:Lokhttp3/y; iget-object v1, v1, Lokhttp3/y;->boc:Ljava/net/InetSocketAddress; invoke-virtual {p2, v0, v1, p1}, Lokhttp3/internal/g/f;->a(Ljava/net/Socket;Ljava/net/InetSocketAddress;I)V :try_end_0 .catch Ljava/net/ConnectException; {:try_start_0 .. :try_end_0} :catch_1 :try_start_1 iget-object p1, p0, Lokhttp3/internal/b/c;->bpl:Ljava/net/Socket; invoke-static {p1}, Lokio/j;->c(Ljava/net/Socket;)Lokio/q; move-result-object p1 invoke-static {p1}, Lokio/j;->b(Lokio/q;)Lokio/d; move-result-object p1 iput-object p1, p0, Lokhttp3/internal/b/c;->bnZ:Lokio/d; iget-object p1, p0, Lokhttp3/internal/b/c;->bpl:Ljava/net/Socket; invoke-static {p1}, Lokio/j;->b(Ljava/net/Socket;)Lokio/p; move-result-object p1 invoke-static {p1}, Lokio/j;->b(Lokio/p;)Lokio/BufferedSink; move-result-object p1 iput-object p1, p0, Lokhttp3/internal/b/c;->bpo:Lokio/BufferedSink; :try_end_1 .catch Ljava/lang/NullPointerException; {:try_start_1 .. :try_end_1} :catch_0 return-void :catch_0 move-exception p1 const-string p2, "throw with null exception" invoke-virtual {p1}, Ljava/lang/NullPointerException;->getMessage()Ljava/lang/String; move-result-object v0 invoke-virtual {p2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result p2 if-nez p2, :cond_2 return-void :cond_2 new-instance p2, Ljava/io/IOException; invoke-direct {p2, p1}, Ljava/io/IOException;->(Ljava/lang/Throwable;)V throw p2 :catch_1 move-exception p1 new-instance p2, Ljava/net/ConnectException; new-instance v0, Ljava/lang/StringBuilder; const-string v1, "Failed to connect to " invoke-direct {v0, v1}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V iget-object v1, p0, Lokhttp3/internal/b/c;->bpk:Lokhttp3/y; iget-object v1, v1, Lokhttp3/y;->boc:Ljava/net/InetSocketAddress; invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v0 invoke-direct {p2, v0}, Ljava/net/ConnectException;->(Ljava/lang/String;)V invoke-virtual {p2, p1}, Ljava/net/ConnectException;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable; throw p2 .end method .method private cV(I)V .locals 5 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation iget-object v0, p0, Lokhttp3/internal/b/c;->bpm:Ljava/net/Socket; const/4 v1, 0x0 invoke-virtual {v0, v1}, Ljava/net/Socket;->setSoTimeout(I)V new-instance v0, Lokhttp3/internal/e/g$a; invoke-direct {v0}, Lokhttp3/internal/e/g$a;->()V iget-object v1, p0, Lokhttp3/internal/b/c;->bpm:Ljava/net/Socket; iget-object v2, p0, Lokhttp3/internal/b/c;->bpk:Lokhttp3/y; iget-object v2, v2, Lokhttp3/y;->bob:Lokhttp3/a; iget-object v2, v2, Lokhttp3/a;->biB:Lokhttp3/s; iget-object v2, v2, Lokhttp3/s;->bmv:Ljava/lang/String; iget-object v3, p0, Lokhttp3/internal/b/c;->bnZ:Lokio/d; iget-object v4, p0, Lokhttp3/internal/b/c;->bpo:Lokio/BufferedSink; invoke-virtual {v0, v1, v2, v3, v4}, Lokhttp3/internal/e/g$a;->a(Ljava/net/Socket;Ljava/lang/String;Lokio/d;Lokio/BufferedSink;)Lokhttp3/internal/e/g$a; move-result-object v0 iput-object p0, v0, Lokhttp3/internal/e/g$a;->bqZ:Lokhttp3/internal/e/g$b; iput p1, v0, Lokhttp3/internal/e/g$a;->brw:I invoke-virtual {v0}, Lokhttp3/internal/e/g$a;->Bn()Lokhttp3/internal/e/g; move-result-object p1 iput-object p1, p0, Lokhttp3/internal/b/c;->bpn:Lokhttp3/internal/e/g; iget-object p1, p0, Lokhttp3/internal/b/c;->bpn:Lokhttp3/internal/e/g; invoke-virtual {p1}, Lokhttp3/internal/e/g;->Bl()V return-void .end method # virtual methods .method public final AR()Z .locals 1 iget-object v0, p0, Lokhttp3/internal/b/c;->bpn:Lokhttp3/internal/e/g; if-eqz v0, :cond_0 const/4 v0, 0x1 return v0 :cond_0 const/4 v0, 0x0 return v0 .end method .method public final X(Z)Z .locals 4 iget-object v0, p0, Lokhttp3/internal/b/c;->bpm:Ljava/net/Socket; invoke-virtual {v0}, Ljava/net/Socket;->isClosed()Z move-result v0 const/4 v1, 0x0 if-nez v0, :cond_5 iget-object v0, p0, Lokhttp3/internal/b/c;->bpm:Ljava/net/Socket; invoke-virtual {v0}, Ljava/net/Socket;->isInputShutdown()Z move-result v0 if-nez v0, :cond_5 iget-object v0, p0, Lokhttp3/internal/b/c;->bpm:Ljava/net/Socket; invoke-virtual {v0}, Ljava/net/Socket;->isOutputShutdown()Z move-result v0 if-eqz v0, :cond_0 goto :goto_0 :cond_0 iget-object v0, p0, Lokhttp3/internal/b/c;->bpn:Lokhttp3/internal/e/g; const/4 v2, 0x1 if-eqz v0, :cond_2 invoke-virtual {v0}, Lokhttp3/internal/e/g;->isShutdown()Z move-result p1 if-nez p1, :cond_1 return v2 :cond_1 return v1 :cond_2 if-eqz p1, :cond_4 :try_start_0 iget-object p1, p0, Lokhttp3/internal/b/c;->bpm:Ljava/net/Socket; invoke-virtual {p1}, Ljava/net/Socket;->getSoTimeout()I move-result p1 :try_end_0 .catch Ljava/net/SocketTimeoutException; {:try_start_0 .. :try_end_0} :catch_1 .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0 :try_start_1 iget-object v0, p0, Lokhttp3/internal/b/c;->bpm:Ljava/net/Socket; invoke-virtual {v0, v2}, Ljava/net/Socket;->setSoTimeout(I)V iget-object v0, p0, Lokhttp3/internal/b/c;->bnZ:Lokio/d; invoke-interface {v0}, Lokio/d;->BW()Z move-result v0 :try_end_1 .catchall {:try_start_1 .. :try_end_1} :catchall_0 if-eqz v0, :cond_3 :try_start_2 iget-object v0, p0, Lokhttp3/internal/b/c;->bpm:Ljava/net/Socket; invoke-virtual {v0, p1}, Ljava/net/Socket;->setSoTimeout(I)V return v1 :cond_3 iget-object v0, p0, Lokhttp3/internal/b/c;->bpm:Ljava/net/Socket; invoke-virtual {v0, p1}, Ljava/net/Socket;->setSoTimeout(I)V return v2 :catchall_0 move-exception v0 iget-object v3, p0, Lokhttp3/internal/b/c;->bpm:Ljava/net/Socket; invoke-virtual {v3, p1}, Ljava/net/Socket;->setSoTimeout(I)V throw v0 :try_end_2 .catch Ljava/net/SocketTimeoutException; {:try_start_2 .. :try_end_2} :catch_1 .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0 :catch_0 return v1 :catch_1 :cond_4 return v2 :cond_5 :goto_0 return v1 .end method .method public final a(IIIIZLokhttp3/e;Lokhttp3/p;)V .locals 16 move-object/from16 v1, p0 move/from16 v2, p4 iget-object v0, v1, Lokhttp3/internal/b/c;->bnO:Lokhttp3/u; if-nez v0, :cond_1c iget-object v0, v1, Lokhttp3/internal/b/c;->bpk:Lokhttp3/y; iget-object v0, v0, Lokhttp3/y;->bob:Lokhttp3/a; iget-object v0, v0, Lokhttp3/a;->biG:Ljava/util/List; new-instance v3, Lokhttp3/internal/b/b; invoke-direct {v3, v0}, Lokhttp3/internal/b/b;->(Ljava/util/List;)V iget-object v4, v1, Lokhttp3/internal/b/c;->bpk:Lokhttp3/y; iget-object v4, v4, Lokhttp3/y;->bob:Lokhttp3/a; iget-object v4, v4, Lokhttp3/a;->sslSocketFactory:Ljavax/net/ssl/SSLSocketFactory; if-nez v4, :cond_2 sget-object v4, Lokhttp3/k;->blJ:Lokhttp3/k; invoke-interface {v0, v4}, Ljava/util/List;->contains(Ljava/lang/Object;)Z move-result v0 if-eqz v0, :cond_1 iget-object v0, v1, Lokhttp3/internal/b/c;->bpk:Lokhttp3/y; iget-object v0, v0, Lokhttp3/y;->bob:Lokhttp3/a; iget-object v0, v0, Lokhttp3/a;->biB:Lokhttp3/s; iget-object v0, v0, Lokhttp3/s;->bmv:Ljava/lang/String; invoke-static {}, Lokhttp3/internal/g/f;->BI()Lokhttp3/internal/g/f; move-result-object v4 invoke-virtual {v4, v0}, Lokhttp3/internal/g/f;->isCleartextTrafficPermitted(Ljava/lang/String;)Z move-result v4 if-eqz v4, :cond_0 goto :goto_0 :cond_0 new-instance v2, Lokhttp3/internal/b/e; new-instance v3, Ljava/net/UnknownServiceException; new-instance v4, Ljava/lang/StringBuilder; const-string v5, "CLEARTEXT communication to " invoke-direct {v4, v5}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; const-string v0, " not permitted by network security policy" invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v0 invoke-direct {v3, v0}, Ljava/net/UnknownServiceException;->(Ljava/lang/String;)V invoke-direct {v2, v3}, Lokhttp3/internal/b/e;->(Ljava/io/IOException;)V throw v2 :cond_1 new-instance v0, Lokhttp3/internal/b/e; new-instance v2, Ljava/net/UnknownServiceException; const-string v3, "CLEARTEXT communication not enabled for client" invoke-direct {v2, v3}, Ljava/net/UnknownServiceException;->(Ljava/lang/String;)V invoke-direct {v0, v2}, Lokhttp3/internal/b/e;->(Ljava/io/IOException;)V throw v0 :cond_2 iget-object v0, v1, Lokhttp3/internal/b/c;->bpk:Lokhttp3/y; iget-object v0, v0, Lokhttp3/y;->bob:Lokhttp3/a; iget-object v0, v0, Lokhttp3/a;->biF:Ljava/util/List; sget-object v4, Lokhttp3/u;->bns:Lokhttp3/u; invoke-interface {v0, v4}, Ljava/util/List;->contains(Ljava/lang/Object;)Z move-result v0 if-nez v0, :cond_1b :goto_0 const/4 v4, 0x0 move-object v5, v4 :goto_1 const/4 v6, 0x0 const/4 v7, 0x1 :try_start_0 iget-object v0, v1, Lokhttp3/internal/b/c;->bpk:Lokhttp3/y; invoke-virtual {v0}, Lokhttp3/y;->AK()Z move-result v0 if-eqz v0, :cond_7 new-instance v0, Lokhttp3/w$a; invoke-direct {v0}, Lokhttp3/w$a;->()V iget-object v8, v1, Lokhttp3/internal/b/c;->bpk:Lokhttp3/y; iget-object v8, v8, Lokhttp3/y;->bob:Lokhttp3/a; iget-object v8, v8, Lokhttp3/a;->biB:Lokhttp3/s; invoke-virtual {v0, v8}, Lokhttp3/w$a;->b(Lokhttp3/s;)Lokhttp3/w$a; move-result-object v0 const-string v8, "CONNECT" invoke-virtual {v0, v8, v4}, Lokhttp3/w$a;->a(Ljava/lang/String;Lokhttp3/RequestBody;)Lokhttp3/w$a; move-result-object v0 const-string v8, "Host" iget-object v9, v1, Lokhttp3/internal/b/c;->bpk:Lokhttp3/y; iget-object v9, v9, Lokhttp3/y;->bob:Lokhttp3/a; iget-object v9, v9, Lokhttp3/a;->biB:Lokhttp3/s; invoke-static {v9, v7}, Lokhttp3/internal/c;->a(Lokhttp3/s;Z)Ljava/lang/String; move-result-object v9 invoke-virtual {v0, v8, v9}, Lokhttp3/w$a;->aj(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/w$a; move-result-object v0 const-string v8, "Proxy-Connection" const-string v9, "Keep-Alive" invoke-virtual {v0, v8, v9}, Lokhttp3/w$a;->aj(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/w$a; move-result-object v0 const-string v8, "User-Agent" const-string v9, "okhttp/3.12.1" invoke-virtual {v0, v8, v9}, Lokhttp3/w$a;->aj(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/w$a; move-result-object v0 invoke-virtual {v0}, Lokhttp3/w$a;->AF()Lokhttp3/w; move-result-object v0 new-instance v8, Lokhttp3/Response$a; invoke-direct {v8}, Lokhttp3/Response$a;->()V iput-object v0, v8, Lokhttp3/Response$a;->bnN:Lokhttp3/w; sget-object v9, Lokhttp3/u;->bnp:Lokhttp3/u; iput-object v9, v8, Lokhttp3/Response$a;->bnO:Lokhttp3/u; const/16 v9, 0x197 iput v9, v8, Lokhttp3/Response$a;->code:I const-string v10, "Preemptive Authenticate" iput-object v10, v8, Lokhttp3/Response$a;->message:Ljava/lang/String; sget-object v10, Lokhttp3/internal/c;->bol:Lokhttp3/x; iput-object v10, v8, Lokhttp3/Response$a;->bnQ:Lokhttp3/x; const-wide/16 v10, -0x1 iput-wide v10, v8, Lokhttp3/Response$a;->bnU:J iput-wide v10, v8, Lokhttp3/Response$a;->bnV:J const-string v12, "Proxy-Authenticate" const-string v13, "OkHttp-Preemptive" iget-object v14, v8, Lokhttp3/Response$a;->bnG:Lokhttp3/Headers$a; invoke-virtual {v14, v12, v13}, Lokhttp3/Headers$a;->ag(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Headers$a; invoke-virtual {v8}, Lokhttp3/Response$a;->AH()Lokhttp3/Response; iget-object v8, v0, Lokhttp3/w;->biB:Lokhttp3/s; invoke-direct/range {p0 .. p2}, Lokhttp3/internal/b/c;->ab(II)V new-instance v12, Ljava/lang/StringBuilder; const-string v13, "CONNECT " invoke-direct {v12, v13}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-static {v8, v7}, Lokhttp3/internal/c;->a(Lokhttp3/s;Z)Ljava/lang/String; move-result-object v8 invoke-virtual {v12, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; const-string v8, " HTTP/1.1" invoke-virtual {v12, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v12}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v8 new-instance v12, Lokhttp3/internal/d/a; iget-object v13, v1, Lokhttp3/internal/b/c;->bnZ:Lokio/d; iget-object v14, v1, Lokhttp3/internal/b/c;->bpo:Lokio/BufferedSink; invoke-direct {v12, v4, v4, v13, v14}, Lokhttp3/internal/d/a;->(Lokhttp3/t;Lokhttp3/internal/b/g;Lokio/d;Lokio/BufferedSink;)V iget-object v13, v1, Lokhttp3/internal/b/c;->bnZ:Lokio/d; invoke-interface {v13}, Lokio/d;->timeout()Lokio/r; move-result-object v13 :try_end_0 .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_4 move/from16 v14, p2 move-object/from16 p7, v5 int-to-long v4, v14 :try_start_1 sget-object v15, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit; invoke-virtual {v13, v4, v5, v15}, Lokio/r;->d(JLjava/util/concurrent/TimeUnit;)Lokio/r; iget-object v4, v1, Lokhttp3/internal/b/c;->bpo:Lokio/BufferedSink; invoke-interface {v4}, Lokio/BufferedSink;->timeout()Lokio/r; move-result-object v4 :try_end_1 .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0 move/from16 v5, p3 int-to-long v9, v5 :try_start_2 sget-object v11, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit; invoke-virtual {v4, v9, v10, v11}, Lokio/r;->d(JLjava/util/concurrent/TimeUnit;)Lokio/r; iget-object v4, v0, Lokhttp3/w;->bmV:Lokhttp3/Headers; invoke-virtual {v12, v4, v8}, Lokhttp3/internal/d/a;->a(Lokhttp3/Headers;Ljava/lang/String;)V invoke-virtual {v12}, Lokhttp3/internal/d/a;->Ba()V invoke-virtual {v12, v6}, Lokhttp3/internal/d/a;->Y(Z)Lokhttp3/Response$a; move-result-object v4 iput-object v0, v4, Lokhttp3/Response$a;->bnN:Lokhttp3/w; invoke-virtual {v4}, Lokhttp3/Response$a;->AH()Lokhttp3/Response; move-result-object v0 invoke-static {v0}, Lokhttp3/internal/c/e;->e(Lokhttp3/Response;)J move-result-wide v8 const-wide/16 v10, -0x1 cmp-long v4, v8, v10 if-nez v4, :cond_3 const-wide/16 v8, 0x0 :cond_3 invoke-virtual {v12, v8, v9}, Lokhttp3/internal/d/a;->ak(J)Lokio/q; move-result-object v4 const v8, 0x7fffffff sget-object v9, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit; invoke-static {v4, v8, v9}, Lokhttp3/internal/c;->a(Lokio/q;ILjava/util/concurrent/TimeUnit;)Z invoke-interface {v4}, Lokio/q;->close()V iget v4, v0, Lokhttp3/Response;->code:I const/16 v8, 0xc8 if-eq v4, v8, :cond_5 const/16 v8, 0x197 if-eq v4, v8, :cond_4 new-instance v4, Ljava/io/IOException; new-instance v8, Ljava/lang/StringBuilder; const-string v9, "Unexpected response code for CONNECT: " invoke-direct {v8, v9}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V iget v0, v0, Lokhttp3/Response;->code:I invoke-virtual {v8, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v0 invoke-direct {v4, v0}, Ljava/io/IOException;->(Ljava/lang/String;)V throw v4 :cond_4 new-instance v0, Ljava/io/IOException; const-string v4, "Failed to authenticate with proxy" invoke-direct {v0, v4}, Ljava/io/IOException;->(Ljava/lang/String;)V throw v0 :cond_5 iget-object v0, v1, Lokhttp3/internal/b/c;->bnZ:Lokio/d; invoke-interface {v0}, Lokio/d;->BU()Lokio/c; move-result-object v0 invoke-virtual {v0}, Lokio/c;->BW()Z move-result v0 if-eqz v0, :cond_6 iget-object v0, v1, Lokhttp3/internal/b/c;->bpo:Lokio/BufferedSink; invoke-interface {v0}, Lokio/BufferedSink;->BU()Lokio/c; move-result-object v0 invoke-virtual {v0}, Lokio/c;->BW()Z move-result v0 if-eqz v0, :cond_6 iget-object v0, v1, Lokhttp3/internal/b/c;->bpl:Ljava/net/Socket; if-nez v0, :cond_8 goto/16 :goto_4 :cond_6 new-instance v0, Ljava/io/IOException; const-string v4, "TLS tunnel buffered too many bytes!" invoke-direct {v0, v4}, Ljava/io/IOException;->(Ljava/lang/String;)V throw v0 :catch_0 move-exception v0 goto/16 :goto_8 :cond_7 move/from16 v14, p2 move-object/from16 p7, v5 move/from16 v5, p3 invoke-direct/range {p0 .. p2}, Lokhttp3/internal/b/c;->ab(II)V :cond_8 iget-object v0, v1, Lokhttp3/internal/b/c;->bpk:Lokhttp3/y; iget-object v0, v0, Lokhttp3/y;->bob:Lokhttp3/a; iget-object v0, v0, Lokhttp3/a;->sslSocketFactory:Ljavax/net/ssl/SSLSocketFactory; if-nez v0, :cond_a iget-object v0, v1, Lokhttp3/internal/b/c;->bpk:Lokhttp3/y; iget-object v0, v0, Lokhttp3/y;->bob:Lokhttp3/a; iget-object v0, v0, Lokhttp3/a;->biF:Ljava/util/List; sget-object v4, Lokhttp3/u;->bns:Lokhttp3/u; invoke-interface {v0, v4}, Ljava/util/List;->contains(Ljava/lang/Object;)Z move-result v0 if-eqz v0, :cond_9 iget-object v0, v1, Lokhttp3/internal/b/c;->bpl:Ljava/net/Socket; iput-object v0, v1, Lokhttp3/internal/b/c;->bpm:Ljava/net/Socket; sget-object v0, Lokhttp3/u;->bns:Lokhttp3/u; iput-object v0, v1, Lokhttp3/internal/b/c;->bnO:Lokhttp3/u; invoke-direct {v1, v2}, Lokhttp3/internal/b/c;->cV(I)V goto/16 :goto_4 :cond_9 iget-object v0, v1, Lokhttp3/internal/b/c;->bpl:Ljava/net/Socket; iput-object v0, v1, Lokhttp3/internal/b/c;->bpm:Ljava/net/Socket; sget-object v0, Lokhttp3/u;->bnp:Lokhttp3/u; iput-object v0, v1, Lokhttp3/internal/b/c;->bnO:Lokhttp3/u; goto/16 :goto_4 :cond_a iget-object v0, v1, Lokhttp3/internal/b/c;->bpk:Lokhttp3/y; iget-object v0, v0, Lokhttp3/y;->bob:Lokhttp3/a; iget-object v4, v0, Lokhttp3/a;->sslSocketFactory:Ljavax/net/ssl/SSLSocketFactory; :try_end_2 .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_3 :try_start_3 iget-object v8, v1, Lokhttp3/internal/b/c;->bpl:Ljava/net/Socket; iget-object v9, v0, Lokhttp3/a;->biB:Lokhttp3/s; iget-object v9, v9, Lokhttp3/s;->bmv:Ljava/lang/String; iget-object v10, v0, Lokhttp3/a;->biB:Lokhttp3/s; iget v10, v10, Lokhttp3/s;->port:I invoke-virtual {v4, v8, v9, v10, v7}, Ljavax/net/ssl/SSLSocketFactory;->createSocket(Ljava/net/Socket;Ljava/lang/String;IZ)Ljava/net/Socket; move-result-object v4 check-cast v4, Ljavax/net/ssl/SSLSocket; :try_end_3 .catch Ljava/lang/AssertionError; {:try_start_3 .. :try_end_3} :catch_2 .catchall {:try_start_3 .. :try_end_3} :catchall_1 :try_start_4 invoke-virtual {v3, v4}, Lokhttp3/internal/b/b;->c(Ljavax/net/ssl/SSLSocket;)Lokhttp3/k; move-result-object v8 iget-boolean v9, v8, Lokhttp3/k;->blL:Z if-eqz v9, :cond_b invoke-static {}, Lokhttp3/internal/g/f;->BI()Lokhttp3/internal/g/f; move-result-object v9 iget-object v10, v0, Lokhttp3/a;->biB:Lokhttp3/s; iget-object v10, v10, Lokhttp3/s;->bmv:Ljava/lang/String; iget-object v11, v0, Lokhttp3/a;->biF:Ljava/util/List; invoke-virtual {v9, v4, v10, v11}, Lokhttp3/internal/g/f;->a(Ljavax/net/ssl/SSLSocket;Ljava/lang/String;Ljava/util/List;)V :cond_b invoke-virtual {v4}, Ljavax/net/ssl/SSLSocket;->startHandshake()V invoke-virtual {v4}, Ljavax/net/ssl/SSLSocket;->getSession()Ljavax/net/ssl/SSLSession; move-result-object v9 invoke-static {v9}, Lokhttp3/r;->a(Ljavax/net/ssl/SSLSession;)Lokhttp3/r; move-result-object v10 iget-object v11, v0, Lokhttp3/a;->hostnameVerifier:Ljavax/net/ssl/HostnameVerifier; iget-object v12, v0, Lokhttp3/a;->biB:Lokhttp3/s; iget-object v12, v12, Lokhttp3/s;->bmv:Ljava/lang/String; invoke-interface {v11, v12, v9}, Ljavax/net/ssl/HostnameVerifier;->verify(Ljava/lang/String;Ljavax/net/ssl/SSLSession;)Z move-result v9 if-eqz v9, :cond_13 iget-object v9, v0, Lokhttp3/a;->biI:Lokhttp3/g; iget-object v0, v0, Lokhttp3/a;->biB:Lokhttp3/s; iget-object v0, v0, Lokhttp3/s;->bmv:Ljava/lang/String; iget-object v11, v10, Lokhttp3/r;->bmp:Ljava/util/List; invoke-virtual {v9, v0, v11}, Lokhttp3/g;->d(Ljava/lang/String;Ljava/util/List;)V iget-boolean v0, v8, Lokhttp3/k;->blL:Z if-eqz v0, :cond_c invoke-static {}, Lokhttp3/internal/g/f;->BI()Lokhttp3/internal/g/f; move-result-object v0 invoke-virtual {v0, v4}, Lokhttp3/internal/g/f;->e(Ljavax/net/ssl/SSLSocket;)Ljava/lang/String; move-result-object v0 goto :goto_2 :cond_c const/4 v0, 0x0 :goto_2 iput-object v4, v1, Lokhttp3/internal/b/c;->bpm:Ljava/net/Socket; iget-object v8, v1, Lokhttp3/internal/b/c;->bpm:Ljava/net/Socket; invoke-static {v8}, Lokio/j;->c(Ljava/net/Socket;)Lokio/q; move-result-object v8 invoke-static {v8}, Lokio/j;->b(Lokio/q;)Lokio/d; move-result-object v8 iput-object v8, v1, Lokhttp3/internal/b/c;->bnZ:Lokio/d; iget-object v8, v1, Lokhttp3/internal/b/c;->bpm:Ljava/net/Socket; invoke-static {v8}, Lokio/j;->b(Ljava/net/Socket;)Lokio/p; move-result-object v8 invoke-static {v8}, Lokio/j;->b(Lokio/p;)Lokio/BufferedSink; move-result-object v8 iput-object v8, v1, Lokhttp3/internal/b/c;->bpo:Lokio/BufferedSink; iput-object v10, v1, Lokhttp3/internal/b/c;->bnP:Lokhttp3/r; if-eqz v0, :cond_d invoke-static {v0}, Lokhttp3/u;->dL(Ljava/lang/String;)Lokhttp3/u; move-result-object v0 goto :goto_3 :cond_d sget-object v0, Lokhttp3/u;->bnp:Lokhttp3/u; :goto_3 iput-object v0, v1, Lokhttp3/internal/b/c;->bnO:Lokhttp3/u; :try_end_4 .catch Ljava/lang/AssertionError; {:try_start_4 .. :try_end_4} :catch_1 .catchall {:try_start_4 .. :try_end_4} :catchall_2 if-eqz v4, :cond_e :try_start_5 invoke-static {}, Lokhttp3/internal/g/f;->BI()Lokhttp3/internal/g/f; move-result-object v0 invoke-virtual {v0, v4}, Lokhttp3/internal/g/f;->f(Ljavax/net/ssl/SSLSocket;)V :cond_e iget-object v0, v1, Lokhttp3/internal/b/c;->bnO:Lokhttp3/u; sget-object v4, Lokhttp3/u;->bnr:Lokhttp3/u; if-ne v0, v4, :cond_f invoke-direct {v1, v2}, Lokhttp3/internal/b/c;->cV(I)V :try_end_5 .catch Ljava/io/IOException; {:try_start_5 .. :try_end_5} :catch_3 :cond_f :goto_4 iget-object v0, v1, Lokhttp3/internal/b/c;->bpk:Lokhttp3/y; invoke-virtual {v0}, Lokhttp3/y;->AK()Z move-result v0 if-eqz v0, :cond_11 iget-object v0, v1, Lokhttp3/internal/b/c;->bpl:Ljava/net/Socket; if-eqz v0, :cond_10 goto :goto_5 :cond_10 new-instance v0, Ljava/net/ProtocolException; const-string v2, "Too many tunnel connections attempted: 21" invoke-direct {v0, v2}, Ljava/net/ProtocolException;->(Ljava/lang/String;)V new-instance v2, Lokhttp3/internal/b/e; invoke-direct {v2, v0}, Lokhttp3/internal/b/e;->(Ljava/io/IOException;)V throw v2 :cond_11 :goto_5 iget-object v0, v1, Lokhttp3/internal/b/c;->bpn:Lokhttp3/internal/e/g; if-eqz v0, :cond_12 iget-object v2, v1, Lokhttp3/internal/b/c;->bnf:Lokhttp3/j; monitor-enter v2 :try_start_6 iget-object v0, v1, Lokhttp3/internal/b/c;->bpn:Lokhttp3/internal/e/g; invoke-virtual {v0}, Lokhttp3/internal/e/g;->Bj()I move-result v0 iput v0, v1, Lokhttp3/internal/b/c;->bpr:I monitor-exit v2 return-void :catchall_0 move-exception v0 monitor-exit v2 :try_end_6 .catchall {:try_start_6 .. :try_end_6} :catchall_0 throw v0 :cond_12 return-void :cond_13 :try_start_7 iget-object v8, v10, Lokhttp3/r;->bmp:Ljava/util/List; invoke-interface {v8, v6}, Ljava/util/List;->get(I)Ljava/lang/Object; move-result-object v8 check-cast v8, Ljava/security/cert/X509Certificate; new-instance v9, Ljavax/net/ssl/SSLPeerUnverifiedException; new-instance v10, Ljava/lang/StringBuilder; const-string v11, "Hostname " invoke-direct {v10, v11}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V iget-object v0, v0, Lokhttp3/a;->biB:Lokhttp3/s; iget-object v0, v0, Lokhttp3/s;->bmv:Ljava/lang/String; invoke-virtual {v10, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; const-string v0, " not verified:\n certificate: " invoke-virtual {v10, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-static {v8}, Lokhttp3/g;->a(Ljava/security/cert/Certificate;)Ljava/lang/String; move-result-object v0 invoke-virtual {v10, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; const-string v0, "\n DN: " invoke-virtual {v10, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v8}, Ljava/security/cert/X509Certificate;->getSubjectDN()Ljava/security/Principal; move-result-object v0 invoke-interface {v0}, Ljava/security/Principal;->getName()Ljava/lang/String; move-result-object v0 invoke-virtual {v10, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; const-string v0, "\n subjectAltNames: " invoke-virtual {v10, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-static {v8}, Lokhttp3/internal/i/d;->f(Ljava/security/cert/X509Certificate;)Ljava/util/List; move-result-object v0 invoke-virtual {v10, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v0 invoke-direct {v9, v0}, Ljavax/net/ssl/SSLPeerUnverifiedException;->(Ljava/lang/String;)V throw v9 :try_end_7 .catch Ljava/lang/AssertionError; {:try_start_7 .. :try_end_7} :catch_1 .catchall {:try_start_7 .. :try_end_7} :catchall_2 :catch_1 move-exception v0 goto :goto_6 :catchall_1 move-exception v0 const/4 v4, 0x0 goto :goto_7 :catch_2 move-exception v0 const/4 v4, 0x0 :goto_6 :try_start_8 invoke-static {v0}, Lokhttp3/internal/c;->a(Ljava/lang/AssertionError;)Z move-result v8 if-eqz v8, :cond_14 new-instance v8, Ljava/io/IOException; invoke-direct {v8, v0}, Ljava/io/IOException;->(Ljava/lang/Throwable;)V throw v8 :cond_14 throw v0 :try_end_8 .catchall {:try_start_8 .. :try_end_8} :catchall_2 :catchall_2 move-exception v0 :goto_7 if-eqz v4, :cond_15 :try_start_9 invoke-static {}, Lokhttp3/internal/g/f;->BI()Lokhttp3/internal/g/f; move-result-object v8 invoke-virtual {v8, v4}, Lokhttp3/internal/g/f;->f(Ljavax/net/ssl/SSLSocket;)V :cond_15 invoke-static {v4}, Lokhttp3/internal/c;->a(Ljava/net/Socket;)V throw v0 :try_end_9 .catch Ljava/io/IOException; {:try_start_9 .. :try_end_9} :catch_3 :catch_3 move-exception v0 goto :goto_9 :catch_4 move-exception v0 move/from16 v14, p2 move-object/from16 p7, v5 :goto_8 move/from16 v5, p3 :goto_9 iget-object v4, v1, Lokhttp3/internal/b/c;->bpm:Ljava/net/Socket; invoke-static {v4}, Lokhttp3/internal/c;->a(Ljava/net/Socket;)V iget-object v4, v1, Lokhttp3/internal/b/c;->bpl:Ljava/net/Socket; invoke-static {v4}, Lokhttp3/internal/c;->a(Ljava/net/Socket;)V const/4 v4, 0x0 iput-object v4, v1, Lokhttp3/internal/b/c;->bpm:Ljava/net/Socket; iput-object v4, v1, Lokhttp3/internal/b/c;->bpl:Ljava/net/Socket; iput-object v4, v1, Lokhttp3/internal/b/c;->bnZ:Lokio/d; iput-object v4, v1, Lokhttp3/internal/b/c;->bpo:Lokio/BufferedSink; iput-object v4, v1, Lokhttp3/internal/b/c;->bnP:Lokhttp3/r; iput-object v4, v1, Lokhttp3/internal/b/c;->bnO:Lokhttp3/u; iput-object v4, v1, Lokhttp3/internal/b/c;->bpn:Lokhttp3/internal/e/g; if-nez p7, :cond_16 new-instance v8, Lokhttp3/internal/b/e; invoke-direct {v8, v0}, Lokhttp3/internal/b/e;->(Ljava/io/IOException;)V goto :goto_a :cond_16 move-object/from16 v8, p7 iget-object v9, v8, Lokhttp3/internal/b/e;->firstException:Ljava/io/IOException; invoke-static {v9, v0}, Lokhttp3/internal/c;->d(Ljava/lang/Throwable;Ljava/lang/Throwable;)V iput-object v0, v8, Lokhttp3/internal/b/e;->lastException:Ljava/io/IOException; :goto_a if-eqz p5, :cond_1a iput-boolean v7, v3, Lokhttp3/internal/b/b;->bpj:Z iget-boolean v9, v3, Lokhttp3/internal/b/b;->bpi:Z if-eqz v9, :cond_19 instance-of v9, v0, Ljava/net/ProtocolException; if-nez v9, :cond_19 instance-of v9, v0, Ljava/io/InterruptedIOException; if-nez v9, :cond_19 instance-of v9, v0, Ljavax/net/ssl/SSLHandshakeException; if-eqz v9, :cond_17 invoke-virtual {v0}, Ljava/io/IOException;->getCause()Ljava/lang/Throwable; move-result-object v10 instance-of v10, v10, Ljava/security/cert/CertificateException; if-nez v10, :cond_19 :cond_17 instance-of v10, v0, Ljavax/net/ssl/SSLPeerUnverifiedException; if-nez v10, :cond_19 if-nez v9, :cond_18 instance-of v9, v0, Ljavax/net/ssl/SSLProtocolException; if-nez v9, :cond_18 instance-of v0, v0, Ljavax/net/ssl/SSLException; if-eqz v0, :cond_19 :cond_18 const/4 v6, 0x1 :cond_19 if-eqz v6, :cond_1a move-object v5, v8 goto/16 :goto_1 :cond_1a throw v8 :cond_1b new-instance v0, Lokhttp3/internal/b/e; new-instance v2, Ljava/net/UnknownServiceException; const-string v3, "H2_PRIOR_KNOWLEDGE cannot be used with HTTPS" invoke-direct {v2, v3}, Ljava/net/UnknownServiceException;->(Ljava/lang/String;)V invoke-direct {v0, v2}, Lokhttp3/internal/b/e;->(Ljava/io/IOException;)V throw v0 :cond_1c new-instance v0, Ljava/lang/IllegalStateException; const-string v2, "already connected" invoke-direct {v0, v2}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V throw v0 return-void .end method .method public final a(Lokhttp3/internal/e/g;)V .locals 1 iget-object v0, p0, Lokhttp3/internal/b/c;->bnf:Lokhttp3/j; monitor-enter v0 :try_start_0 invoke-virtual {p1}, Lokhttp3/internal/e/g;->Bj()I move-result p1 iput p1, p0, Lokhttp3/internal/b/c;->bpr:I monitor-exit v0 return-void :catchall_0 move-exception p1 monitor-exit v0 :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 throw p1 .end method .method public final a(Lokhttp3/internal/e/i;)V .locals 1 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation sget-object v0, Lokhttp3/internal/e/b;->bqi:Lokhttp3/internal/e/b; invoke-virtual {p1, v0}, Lokhttp3/internal/e/i;->b(Lokhttp3/internal/e/b;)V return-void .end method .method public final a(Lokhttp3/a;Lokhttp3/y;)Z .locals 4 .param p2 # Lokhttp3/y; .annotation runtime Ljavax/annotation/Nullable; .end annotation .end param iget-object v0, p0, Lokhttp3/internal/b/c;->bps:Ljava/util/List; invoke-interface {v0}, Ljava/util/List;->size()I move-result v0 iget v1, p0, Lokhttp3/internal/b/c;->bpr:I const/4 v2, 0x0 if-ge v0, v1, :cond_a iget-boolean v0, p0, Lokhttp3/internal/b/c;->bpp:Z if-eqz v0, :cond_0 goto :goto_0 :cond_0 sget-object v0, Lokhttp3/internal/a;->boj:Lokhttp3/internal/a; iget-object v1, p0, Lokhttp3/internal/b/c;->bpk:Lokhttp3/y; iget-object v1, v1, Lokhttp3/y;->bob:Lokhttp3/a; invoke-virtual {v0, v1, p1}, Lokhttp3/internal/a;->a(Lokhttp3/a;Lokhttp3/a;)Z move-result v0 if-nez v0, :cond_1 return v2 :cond_1 iget-object v0, p1, Lokhttp3/a;->biB:Lokhttp3/s; iget-object v0, v0, Lokhttp3/s;->bmv:Ljava/lang/String; iget-object v1, p0, Lokhttp3/internal/b/c;->bpk:Lokhttp3/y; iget-object v1, v1, Lokhttp3/y;->bob:Lokhttp3/a; iget-object v1, v1, Lokhttp3/a;->biB:Lokhttp3/s; iget-object v1, v1, Lokhttp3/s;->bmv:Ljava/lang/String; invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v0 const/4 v1, 0x1 if-eqz v0, :cond_2 return v1 :cond_2 iget-object v0, p0, Lokhttp3/internal/b/c;->bpn:Lokhttp3/internal/e/g; if-nez v0, :cond_3 return v2 :cond_3 if-nez p2, :cond_4 return v2 :cond_4 iget-object v0, p2, Lokhttp3/y;->biH:Ljava/net/Proxy; invoke-virtual {v0}, Ljava/net/Proxy;->type()Ljava/net/Proxy$Type; move-result-object v0 sget-object v3, Ljava/net/Proxy$Type;->DIRECT:Ljava/net/Proxy$Type; if-eq v0, v3, :cond_5 return v2 :cond_5 iget-object v0, p0, Lokhttp3/internal/b/c;->bpk:Lokhttp3/y; iget-object v0, v0, Lokhttp3/y;->biH:Ljava/net/Proxy; invoke-virtual {v0}, Ljava/net/Proxy;->type()Ljava/net/Proxy$Type; move-result-object v0 sget-object v3, Ljava/net/Proxy$Type;->DIRECT:Ljava/net/Proxy$Type; if-eq v0, v3, :cond_6 return v2 :cond_6 iget-object v0, p0, Lokhttp3/internal/b/c;->bpk:Lokhttp3/y; iget-object v0, v0, Lokhttp3/y;->boc:Ljava/net/InetSocketAddress; iget-object v3, p2, Lokhttp3/y;->boc:Ljava/net/InetSocketAddress; invoke-virtual {v0, v3}, Ljava/net/InetSocketAddress;->equals(Ljava/lang/Object;)Z move-result v0 if-nez v0, :cond_7 return v2 :cond_7 iget-object p2, p2, Lokhttp3/y;->bob:Lokhttp3/a; iget-object p2, p2, Lokhttp3/a;->hostnameVerifier:Ljavax/net/ssl/HostnameVerifier; sget-object v0, Lokhttp3/internal/i/d;->bsS:Lokhttp3/internal/i/d; if-eq p2, v0, :cond_8 return v2 :cond_8 iget-object p2, p1, Lokhttp3/a;->biB:Lokhttp3/s; invoke-virtual {p0, p2}, Lokhttp3/internal/b/c;->c(Lokhttp3/s;)Z move-result p2 if-nez p2, :cond_9 return v2 :cond_9 :try_start_0 iget-object p2, p1, Lokhttp3/a;->biI:Lokhttp3/g; iget-object p1, p1, Lokhttp3/a;->biB:Lokhttp3/s; iget-object p1, p1, Lokhttp3/s;->bmv:Ljava/lang/String; iget-object v0, p0, Lokhttp3/internal/b/c;->bnP:Lokhttp3/r; iget-object v0, v0, Lokhttp3/r;->bmp:Ljava/util/List; invoke-virtual {p2, p1, v0}, Lokhttp3/g;->d(Ljava/lang/String;Ljava/util/List;)V :try_end_0 .catch Ljavax/net/ssl/SSLPeerUnverifiedException; {:try_start_0 .. :try_end_0} :catch_0 return v1 :catch_0 return v2 :cond_a :goto_0 return v2 .end method .method public final c(Lokhttp3/s;)Z .locals 4 iget v0, p1, Lokhttp3/s;->port:I iget-object v1, p0, Lokhttp3/internal/b/c;->bpk:Lokhttp3/y; iget-object v1, v1, Lokhttp3/y;->bob:Lokhttp3/a; iget-object v1, v1, Lokhttp3/a;->biB:Lokhttp3/s; iget v1, v1, Lokhttp3/s;->port:I const/4 v2, 0x0 if-eq v0, v1, :cond_0 return v2 :cond_0 iget-object v0, p1, Lokhttp3/s;->bmv:Ljava/lang/String; iget-object v1, p0, Lokhttp3/internal/b/c;->bpk:Lokhttp3/y; iget-object v1, v1, Lokhttp3/y;->bob:Lokhttp3/a; iget-object v1, v1, Lokhttp3/a;->biB:Lokhttp3/s; iget-object v1, v1, Lokhttp3/s;->bmv:Ljava/lang/String; invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v0 const/4 v1, 0x1 if-nez v0, :cond_2 iget-object v0, p0, Lokhttp3/internal/b/c;->bnP:Lokhttp3/r; if-eqz v0, :cond_1 sget-object v0, Lokhttp3/internal/i/d;->bsS:Lokhttp3/internal/i/d; iget-object p1, p1, Lokhttp3/s;->bmv:Ljava/lang/String; iget-object v3, p0, Lokhttp3/internal/b/c;->bnP:Lokhttp3/r; iget-object v3, v3, Lokhttp3/r;->bmp:Ljava/util/List; invoke-interface {v3, v2}, Ljava/util/List;->get(I)Ljava/lang/Object; move-result-object v3 check-cast v3, Ljava/security/cert/X509Certificate; invoke-virtual {v0, p1, v3}, Lokhttp3/internal/i/d;->a(Ljava/lang/String;Ljava/security/cert/X509Certificate;)Z move-result p1 if-eqz p1, :cond_1 return v1 :cond_1 return v2 :cond_2 return v1 .end method .method public final toString()Ljava/lang/String; .locals 2 new-instance v0, Ljava/lang/StringBuilder; const-string v1, "Connection{" invoke-direct {v0, v1}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V iget-object v1, p0, Lokhttp3/internal/b/c;->bpk:Lokhttp3/y; iget-object v1, v1, Lokhttp3/y;->bob:Lokhttp3/a; iget-object v1, v1, Lokhttp3/a;->biB:Lokhttp3/s; iget-object v1, v1, Lokhttp3/s;->bmv:Ljava/lang/String; invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; const-string v1, ":" invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; iget-object v1, p0, Lokhttp3/internal/b/c;->bpk:Lokhttp3/y; iget-object v1, v1, Lokhttp3/y;->bob:Lokhttp3/a; iget-object v1, v1, Lokhttp3/a;->biB:Lokhttp3/s; iget v1, v1, Lokhttp3/s;->port:I invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; const-string v1, ", proxy=" invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; iget-object v1, p0, Lokhttp3/internal/b/c;->bpk:Lokhttp3/y; iget-object v1, v1, Lokhttp3/y;->biH:Ljava/net/Proxy; invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; const-string v1, " hostAddress=" invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; iget-object v1, p0, Lokhttp3/internal/b/c;->bpk:Lokhttp3/y; iget-object v1, v1, Lokhttp3/y;->boc:Ljava/net/InetSocketAddress; invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; const-string v1, " cipherSuite=" invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; iget-object v1, p0, Lokhttp3/internal/b/c;->bnP:Lokhttp3/r; if-eqz v1, :cond_0 iget-object v1, v1, Lokhttp3/r;->bmo:Lokhttp3/h; goto :goto_0 :cond_0 const-string v1, "none" :goto_0 invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; const-string v1, " protocol=" invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; iget-object v1, p0, Lokhttp3/internal/b/c;->bnO:Lokhttp3/u; invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; const/16 v1, 0x7d invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder; invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v0 return-object v0 .end method .method public final zX()Lokhttp3/u; .locals 1 iget-object v0, p0, Lokhttp3/internal/b/c;->bnO:Lokhttp3/u; return-object v0 .end method