okhttp3.internal.connection.RealConnection.class Maven / Gradle / Ivy
???? 3l
?m
no
m
pq???????
r
s
tu
v
w
xyz
{
|}
~?
?
~? ???????
{
?
~?
??
??
???
$m?
$??
$?
|?
?
?
??
??
?
?
?
?
?
?
?
??
?
????
$?
:{
?
|?
?? ?? ??
~?
???
E?
E?
|?
????
$?
J{
J?
??
??
??
?? ??
? ???
V?
V?
V?
V?
??
??
???
?
??
~?
??
^?
^?
??
~???
????????
???
j????
??
k{
~?
??
??
??
???
??
.??
????
???? ??
????
?
?
?
?
????????
?
???
?
?
?
.{
~
?m
?
?!"#$
%&
?'?(
)
~*
+,
?-
./
.01
?2
E3
E4
E5
?6
E7?8 9:
;<=>?@A
?BCD
$EFH InnerClasses connectionPool Lokhttp3/ConnectionPool; route Lokhttp3/Route; rawSocket Ljava/net/Socket; socket handshake Lokhttp3/Handshake; protocol Lokhttp3/Protocol; http2Connection (Lokhttp3/internal/http2/Http2Connection; source Lokio/BufferedSource; sink Lokio/BufferedSink; noNewStreams Z successCount I allocationLimit allocations Ljava/util/List; Signature [Ljava/util/List;>; idleAtNanos J *(Lokhttp3/ConnectionPool;Lokhttp3/Route;)V Code LineNumberTable LocalVariableTable this ,Lokhttp3/internal/connection/RealConnection; testConnection g(Lokhttp3/ConnectionPool;Lokhttp3/Route;Ljava/net/Socket;J)Lokhttp3/internal/connection/RealConnection; result connect (IIIZ)V host Ljava/lang/String; e Ljava/io/IOException; connectTimeout readTimeout writeTimeout connectionRetryEnabled routeException ,Lokhttp3/internal/connection/RouteException; connectionSpecs connectionSpecSelector 4Lokhttp3/internal/connection/ConnectionSpecSelector; LocalVariableTypeTable *Ljava/util/List;
StackMapTable?I??uJK
connectTunnel (III)V
tunnelRequest Lokhttp3/Request; url Lokhttp3/HttpUrl; attemptedConnections maxAttemptsLM
Exceptions
connectSocket (II)V ce Ljava/net/ConnectException; proxy Ljava/net/Proxy; address Lokhttp3/Address;NO?? establishProtocol 7(Lokhttp3/internal/connection/ConnectionSpecSelector;)V
connectTls cert $Ljava/security/cert/X509Certificate; connectionSpec Lokhttp3/ConnectionSpec; unverifiedHandshake
maybeProtocol Ljava/lang/AssertionError; sslSocketFactory Ljavax/net/ssl/SSLSocketFactory; success sslSocket Ljavax/net/ssl/SSLSocket;P?QRST? createTunnel 7(IILokhttp3/Request;Lokhttp3/HttpUrl;)Lokhttp3/Request; tunnelConnection #Lokhttp3/internal/http1/Http1Codec; response Lokhttp3/Response;
contentLength body
Lokio/Source; requestLine?UV createTunnelRequest ()Lokhttp3/Request;
isEligible (Lokhttp3/Address;)Z newCodec g(Lokhttp3/OkHttpClient;Lokhttp3/internal/connection/StreamAllocation;)Lokhttp3/internal/http/HttpCodec; client Lokhttp3/OkHttpClient; streamAllocation .Lokhttp3/internal/connection/StreamAllocation;W newWebSocketStreamsY Streams [(Lokhttp3/internal/connection/StreamAllocation;)Lokhttp3/internal/ws/RealWebSocket$Streams; ()Lokhttp3/Route; cancel ()V ()Ljava/net/Socket; isHealthy (Z)Z doExtensiveChecks8 onStream '(Lokhttp3/internal/http2/Http2Stream;)V stream $Lokhttp3/internal/http2/Http2Stream;
onSettings +(Lokhttp3/internal/http2/Http2Connection;)V
connectionZ ()Lokhttp3/Handshake;
isMultiplexed ()Z ()Lokhttp3/Protocol; toString ()Ljava/lang/String;?
SourceFile RealConnection.java java/net/HttpURLConnection ?U ? ? java/util/ArrayList ? ? java/lang/Long ? ? ? ? ? ? *okhttp3/internal/connection/RealConnection ? ? ? ? ? ? java/lang/IllegalStateException already connected ?[\]O ?^ 2okhttp3/internal/connection/ConnectionSpecSelector ?_+`Qa'Ibc *okhttp3/internal/connection/RouteException java/net/UnknownServiceException .CLEARTEXT communication not enabled for client ?deM ?hfghij java/lang/StringBuilder CLEARTEXT communication to kl ) not permitted by network security policyghme
!" java/io/IOExceptionnop ? ? ? ? ? ? ? ? ? ?qdrsZtuDEL java/net/ProtocolException 'Too many tunnel connections attempted: kv78wNxz{|}~}???V java/net/Socket ??????? java/net/ConnectException Failed to connect to k???? ???? ????T? ?#"? ? .okhttp3/internal/http2/Http2Connection$Builder Builder ?? ???????U?uP?? javax/net/ssl/SSLSocket???e?^???U??Rg???????^g? "java/security/cert/X509Certificate (javax/net/ssl/SSLPeerUnverifiedException Hostname not verified:
certificate: ???
DN: ????h
subjectAltNames: ?????????g??? java/lang/AssertionError?? ?? CONNECT ?? HTTP/1.1 !okhttp3/internal/http1/Http1Codec ?????????????????U????????=??? java/lang/Integer??VUU?u????e #TLS tunnel buffered too many bytes!????? !Failed to authenticate with proxy close
Connection??S?j &Unexpected response code for CONNECT: okhttp3/Request$Builder? Host?? Proxy-Connection
Keep-Alive
User-Agent??h?E?u ?S?c ? ? !okhttp3/internal/http2/Http2Codec ????u?u ,okhttp3/internal/connection/RealConnection$1 ???e?e?e?e?u java/net/SocketTimeoutException??? Connection{ : , proxy=
hostAddress=
cipherSuite= none
protocol=k /okhttp3/internal/http2/Http2Connection$Listener Listener okhttp3/Connection java/util/List java/lang/Object java/lang/Throwable okhttp3/Request okhttp3/HttpUrl java/net/Proxy okhttp3/Address javax/net/ssl/SSLSocketFactory okhttp3/ConnectionSpec okhttp3/Handshake java/lang/String okhttp3/Protocol okhttp3/Response okio/Source java/net/SocketException )okhttp3/internal/ws/RealWebSocket$Streams &okhttp3/internal/http2/Http2Connection (Ljava/lang/String;)V
okhttp3/Route ()Lokhttp3/Address; ()Ljava/util/List; (Ljava/util/List;)V "()Ljavax/net/ssl/SSLSocketFactory; CLEARTEXT contains (Ljava/lang/Object;)Z (Ljava/io/IOException;)V ()Lokhttp3/HttpUrl; "okhttp3/internal/platform/Platform get &()Lokhttp3/internal/platform/Platform; isCleartextTrafficPermitted (Ljava/lang/String;)Z append -(Ljava/lang/String;)Ljava/lang/StringBuilder; requiresTunnel okhttp3/internal/Util closeQuietly (Ljava/net/Socket;)V addConnectException connectionFailed (Ljava/io/IOException;)Z maxConcurrentStreams ()I (I)Ljava/lang/StringBuilder; ()Ljava/net/Proxy; type Type ()Ljava/net/Proxy$Type; java/net/Proxy$Type DIRECT Ljava/net/Proxy$Type; HTTP
socketFactory ()Ljavax/net/SocketFactory; javax/net/SocketFactory createSocket (Ljava/net/Proxy;)V setSoTimeout (I)V
socketAddress ()Ljava/net/InetSocketAddress; 1(Ljava/net/Socket;Ljava/net/InetSocketAddress;I)V -(Ljava/lang/Object;)Ljava/lang/StringBuilder; initCause ,(Ljava/lang/Throwable;)Ljava/lang/Throwable; okio/Okio (Ljava/net/Socket;)Lokio/Source; buffer $(Lokio/Source;)Lokio/BufferedSource; (Ljava/net/Socket;)Lokio/Sink; (Lokio/Sink;)Lokio/BufferedSink; HTTP_1_1 HTTP_2 (Z)V }(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; build *()Lokhttp3/internal/http2/Http2Connection; start port 8(Ljava/net/Socket;Ljava/lang/String;IZ)Ljava/net/Socket; configureSecureSocket 3(Ljavax/net/ssl/SSLSocket;)Lokhttp3/ConnectionSpec; supportsTlsExtensions protocols configureTlsExtensions >(Ljavax/net/ssl/SSLSocket;Ljava/lang/String;Ljava/util/List;)V startHandshake
getSession ()Ljavax/net/ssl/SSLSession; /(Ljavax/net/ssl/SSLSession;)Lokhttp3/Handshake; hostnameVerifier "()Ljavax/net/ssl/HostnameVerifier; javax/net/ssl/HostnameVerifier verify /(Ljava/lang/String;Ljavax/net/ssl/SSLSession;)Z peerCertificates (I)Ljava/lang/Object; okhttp3/CertificatePinner pin 4(Ljava/security/cert/Certificate;)Ljava/lang/String; getSubjectDN ()Ljava/security/Principal; java/security/Principal getName 'okhttp3/internal/tls/OkHostnameVerifier allSubjectAltNames 6(Ljava/security/cert/X509Certificate;)Ljava/util/List; certificatePinner ()Lokhttp3/CertificatePinner; check %(Ljava/lang/String;Ljava/util/List;)V getSelectedProtocol -(Ljavax/net/ssl/SSLSocket;)Ljava/lang/String; &(Ljava/lang/String;)Lokhttp3/Protocol; afterHandshake (Ljavax/net/ssl/SSLSocket;)V isAndroidGetsocknameError (Ljava/lang/AssertionError;)Z (Ljava/lang/Throwable;)V
hostHeader &(Lokhttp3/HttpUrl;Z)Ljava/lang/String; o(Lokhttp3/OkHttpClient;Lokhttp3/internal/connection/StreamAllocation;Lokio/BufferedSource;Lokio/BufferedSink;)V okio/BufferedSource timeout ()Lokio/Timeout; java/util/concurrent/TimeUnit MILLISECONDS Ljava/util/concurrent/TimeUnit; okio/Timeout 0(JLjava/util/concurrent/TimeUnit;)Lokio/Timeout; okio/BufferedSink headers ()Lokhttp3/Headers; writeRequest &(Lokhttp3/Headers;Ljava/lang/String;)V
finishRequest readResponseHeaders (Z)Lokhttp3/Response$Builder; okhttp3/Response$Builder request -(Lokhttp3/Request;)Lokhttp3/Response$Builder; ()Lokhttp3/Response; !okhttp3/internal/http/HttpHeaders (Lokhttp3/Response;)J newFixedLengthSource (J)Lokio/Source; skipAll 0(Lokio/Source;ILjava/util/concurrent/TimeUnit;)Z code ()Lokio/Buffer; okio/Buffer exhausted proxyAuthenticator ()Lokhttp3/Authenticator; okhttp3/Authenticator authenticate 4(Lokhttp3/Route;Lokhttp3/Response;)Lokhttp3/Request; header &(Ljava/lang/String;)Ljava/lang/String; equalsIgnoreCase ,(Lokhttp3/HttpUrl;)Lokhttp3/Request$Builder; ?(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Request$Builder; okhttp3/internal/Version userAgent size equals o(Lokhttp3/OkHttpClient;Lokhttp3/internal/connection/StreamAllocation;Lokhttp3/internal/http2/Http2Connection;)V okhttp3/OkHttpClient readTimeoutMillis writeTimeoutMillis ?(Lokhttp3/internal/connection/RealConnection;ZLokio/BufferedSource;Lokio/BufferedSink;Lokhttp3/internal/connection/StreamAllocation;)V isClosed isInputShutdown isOutputShutdown
isShutdown getSoTimeout okhttp3/internal/http2/ErrorCode REFUSED_STREAM "Lokhttp3/internal/http2/ErrorCode; "okhttp3/internal/http2/Http2Stream %(Lokhttp3/internal/http2/ErrorCode;)V cipherSuite ()Lokhttp3/CipherSuite; (C)Ljava/lang/StringBuilder; !okhttp3/internal/ws/RealWebSocket 1
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? | &*? *? *? Y? ? * ?
*+? *,? ? ? l d g j m n % o ? &