okhttp3.internal.connection.RealConnection.class Maven / Gradle / Ivy
???? 4? *okhttp3/internal/connection/RealConnection /okhttp3/internal/http2/Http2Connection$Listener okhttp3/Connection rawSocket Ljava/net/Socket; socket handshake Lokhttp3/Handshake; protocol Lokhttp3/Protocol; http2Connection (Lokhttp3/internal/http2/Http2Connection; source Lokio/BufferedSource; sink Lokio/BufferedSink; noNewExchanges Z getNoNewExchanges ()Z this ,Lokhttp3/internal/connection/RealConnection; setNoNewExchanges (Z)V noCoalescedConnections routeFailureCount I getRouteFailureCount$okhttp ()I ! $ setRouteFailureCount$okhttp (I)V successCount refusedStreamCount allocationLimit calls Ljava/util/List; SLjava/util/List;>; #Lorg/jetbrains/annotations/NotNull; getCalls ()Ljava/util/List; U()Ljava/util/List;>; + , 2 idleAtNs J getIdleAtNs$okhttp ()J 4 5 8 setIdleAtNs$okhttp (J)V isMultiplexed$okhttp = noNewExchanges$okhttp ()V noCoalescedConnections$okhttp B incrementSuccessCount$okhttp ( ! E connect -(IIIIZLokhttp3/Call;Lokhttp3/EventListener;)V java/io/IOException I call K kotlin/jvm/internal/Intrinsics M checkNotNullParameter '(Ljava/lang/Object;Ljava/lang/String;)V O P
N Q
eventListener S
U already connected W java/lang/IllegalStateException Y java/lang/Object [ toString ()Ljava/lang/String; ] ^
\ _ (Ljava/lang/String;)V a b
Z c java/lang/Throwable e *okhttp3/internal/connection/RouteException g route Lokhttp3/Route; i j k
okhttp3/Route m address ()Lokhttp3/Address; o p
n q okhttp3/Address s connectionSpecs u 0
t v 2okhttp3/internal/connection/ConnectionSpecSelector x (Ljava/util/List;)V a z
y { sslSocketFactory "()Ljavax/net/ssl/SSLSocketFactory; } ~
t okhttp3/ConnectionSpec ? CLEARTEXT Lokhttp3/ConnectionSpec; ? ? ? ? java/util/List ? contains (Ljava/lang/Object;)Z ? ? ? ? java/net/UnknownServiceException ? .CLEARTEXT communication not enabled for client ?
? c (Ljava/io/IOException;)V a ?
h ? url ()Lokhttp3/HttpUrl; ? ?
t ? okhttp3/HttpUrl ? host ? ^
? ? "okhttp3/internal/platform/Platform ? Companion .Lokhttp3/internal/platform/Platform$Companion; ? ? ? ? ,okhttp3/internal/platform/Platform$Companion ? get &()Lokhttp3/internal/platform/Platform; ? ?
? ? isCleartextTrafficPermitted (Ljava/lang/String;)Z ? ?
? ? java/lang/StringBuilder ? a @
? ? CLEARTEXT communication to ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? ) not permitted by network security policy ?
? _ protocols ? 0
t ? okhttp3/Protocol ? H2_PRIOR_KNOWLEDGE ?
? ? ,H2_PRIOR_KNOWLEDGE cannot be used with HTTPS ? requiresTunnel ?
n ?
connectTunnel +(IIILokhttp3/Call;Lokhttp3/EventListener;)V ? ?
? ?
connectSocket *(IILokhttp3/Call;Lokhttp3/EventListener;)V ? ?
? establishProtocol ](Lokhttp3/internal/connection/ConnectionSpecSelector;ILokhttp3/Call;Lokhttp3/EventListener;)V ? ?
?
socketAddress ()Ljava/net/InetSocketAddress; ? ?
n ? proxy ()Ljava/net/Proxy; ? ?
n ? okhttp3/EventListener ?
connectEnd O(Lokhttp3/Call;Ljava/net/InetSocketAddress;Ljava/net/Proxy;Lokhttp3/Protocol;)V ? ?
? ? ? okhttp3/internal/Util ? closeQuietly (Ljava/net/Socket;)V ? ?
? ? java/net/Socket ? okio/BufferedSource ? ? okio/BufferedSink ? ? okhttp3/Handshake ?
? &okhttp3/internal/http2/Http2Connection ? * ! ?
connectFailed d(Lokhttp3/Call;Ljava/net/InetSocketAddress;Ljava/net/Proxy;Lokhttp3/Protocol;Ljava/io/IOException;)V ? ?
? addConnectException ?
h connectionFailed (Ljava/io/IOException;)Z
y java/net/ProtocolException )Too many tunnel connections attempted: 21
c java/lang/System nanoTime 7
$$i$a$-check-RealConnection$connect$1 Ljava/lang/String; e Ljava/io/IOException; connectionSpecSelector 4Lokhttp3/internal/connection/ConnectionSpecSelector; routeException ,Lokhttp3/internal/connection/RouteException; connectTimeout readTimeout writeTimeout pingIntervalMillis connectionRetryEnabled Lokhttp3/Call; Lokhttp3/EventListener; okhttp3/Call" createTunnelRequest ()Lokhttp3/Request;$%
& okhttp3/Request(
) ? createTunnel 7(IILokhttp3/Request;Lokhttp3/HttpUrl;)Lokhttp3/Request;+,
- i Lokhttp3/HttpUrl;
tunnelRequest Lokhttp3/Request; java/net/ConnectException3 java/lang/NullPointerException5 java/net/Proxy7 type ()Ljava/net/Proxy$Type;9:
8; 7okhttp3/internal/connection/RealConnection$WhenMappings= $EnumSwitchMapping$0 [I?@ >A java/net/Proxy$TypeC ordinalE #
DF
socketFactory ()Ljavax/net/SocketFactory;HI
tJ javax/net/SocketFactoryL createSocket ()Ljava/net/Socket;NO
MP checkNotNull (Ljava/lang/Object;)VRS
NT (Ljava/net/Proxy;)V aV
?W connectStart =(Lokhttp3/Call;Ljava/net/InetSocketAddress;Ljava/net/Proxy;)VYZ
?[ setSoTimeout] '
?^ 1(Ljava/net/Socket;Ljava/net/InetSocketAddress;I)V ?`
?a Failed to connect to c -(Ljava/lang/Object;)Ljava/lang/StringBuilder; ?e
?f
4 c initCause ,(Ljava/lang/Throwable;)Ljava/lang/Throwable;ij
4k okio/Okiom (Ljava/net/Socket;)Lokio/Source; o
np buffer $(Lokio/Source;)Lokio/BufferedSource;rs
nt (Ljava/net/Socket;)Lokio/Sink; v
nw (Lokio/Sink;)Lokio/BufferedSink;ry
nz
getMessage| ^
6} throw with null exception areEqual '(Ljava/lang/Object;Ljava/lang/Object;)Z??
N? (Ljava/lang/Throwable;)V a?
J? $this$apply Ljava/net/ConnectException; *$i$a$-apply-RealConnection$connectSocket$1 npe Ljava/lang/NullPointerException; Lokhttp3/Address; Ljava/net/Proxy;
startHttp2? '
? HTTP_1_1?
?? secureConnectStart (Lokhttp3/Call;)V??
??
connectTls 7(Lokhttp3/internal/connection/ConnectionSpecSelector;)V??
? secureConnectEnd $(Lokhttp3/Call;Lokhttp3/Handshake;)V??
?? HTTP_2?
?? .okhttp3/internal/http2/Http2Connection$Builder? &okhttp3/internal/concurrent/TaskRunner? INSTANCE (Lokhttp3/internal/concurrent/TaskRunner;?? ?? ,(ZLokhttp3/internal/concurrent/TaskRunner;)V a?
?? }(Ljava/net/Socket;Ljava/lang/String;Lokio/BufferedSource;Lokio/BufferedSink;)Lokhttp3/internal/http2/Http2Connection$Builder; ?
?? listener c(Lokhttp3/internal/http2/Http2Connection$Listener;)Lokhttp3/internal/http2/Http2Connection$Builder;??
?? 3(I)Lokhttp3/internal/http2/Http2Connection$Builder;?
?? build *()Lokhttp3/internal/http2/Http2Connection;??
?? 2Lokhttp3/internal/http2/Http2Connection$Companion; ?? ?? 0okhttp3/internal/http2/Http2Connection$Companion? getDEFAULT_SETTINGS #()Lokhttp3/internal/http2/Settings;??
?? okhttp3/internal/http2/Settings? getMaxConcurrentStreams? #
??
start$default g(Lokhttp3/internal/http2/Http2Connection;ZLokhttp3/internal/concurrent/TaskRunner;ILjava/lang/Object;)V??
?? javax/net/ssl/SSLSocket? port? #
?? javax/net/ssl/SSLSocketFactory? 8(Ljava/net/Socket;Ljava/lang/String;IZ)Ljava/net/Socket;N?
??