Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 40 for connected (0.21 sec)

  1. okhttp/src/test/java/okhttp3/FakeRoutePlanner.kt

            }
            else -> {
              events += "plan $id TCP connected"
              connectState = ConnectState.TCP_CONNECTED
              ConnectResult(this)
            }
          }
        }
    
        override fun connectTlsEtc(): ConnectResult {
          check(connectState == ConnectState.TCP_CONNECTED)
          events += "plan $id TLS connecting..."
    
          taskFaker.sleep(tlsConnectDelayNanos)
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 24 04:40:49 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/connection/FastFallbackExchangeFinder.kt

            }
    
            // Wait for an in-flight connect to complete or fail.
            if (connectResult == null) {
              connectResult = awaitTcpConnect(awaitTimeoutNanos, TimeUnit.NANOSECONDS) ?: continue
            }
    
            if (connectResult.isSuccess) {
              // We have a connected TCP connection. Cancel and defer the racing connects that all lost.
              cancelInFlightConnects()
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/connection/ConnectPlan.kt

    import okio.BufferedSource
    import okio.buffer
    import okio.sink
    import okio.source
    
    /**
     * A single attempt to connect to a remote server, including these steps:
     *
     *  * [TCP handshake][connectSocket]
     *  * Optional [CONNECT tunnels][connectTunnel]. When using an HTTP proxy to reach an HTTPS server
     *    we must send a `CONNECT` request, and handle authorization challenges from the proxy.
     *  * Optional [TLS handshake][connectTls].
     *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/connection/CallConnectionUser.kt

      }
    
      override fun callConnectEnd(
        route: Route,
        protocol: Protocol?,
      ) {
        eventListener.connectEnd(call, route.socketAddress, route.proxy, protocol)
      }
    
      override fun connectionConnectEnd(
        connection: Connection,
        route: Route,
      ) {
        poolConnectionListener.connectEnd(connection, route, call)
      }
    
      override fun connectionAcquired(connection: Connection) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Mar 06 17:33:38 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/internal/platform/android/AndroidSocketAdapterTest.kt

        val sslSocket = socketFactory.createSocket() as SSLSocket
        assertTrue(adapter.matchesSocket(sslSocket))
    
        adapter.configureTlsExtensions(sslSocket, null, listOf(HTTP_2, HTTP_1_1))
        // not connected
        assertNull(adapter.getSelectedProtocol(sslSocket))
      }
    
      @ParameterizedTest
      @MethodSource("data")
      fun testMatchesSupportedAndroidSocketFactory(adapter: SocketAdapter) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/ws/RealWebSocket.kt

      private var writerTask: Task? = null
    
      /** Null until this web socket is connected. Only accessed by the reader thread. */
      private var reader: WebSocketReader? = null
    
      // All mutable web socket state is guarded by this.
    
      /** Null until this web socket is connected. Note that messages may be enqueued before that. */
      private var writer: WebSocketWriter? = null
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 01 14:21:25 GMT 2024
    - 22.1K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/connection/RouteDatabase.kt

      /** Records a failure connecting to [failedRoute]. */
      @Synchronized fun failed(failedRoute: Route) {
        _failedRoutes.add(failedRoute)
      }
    
      /** Records success connecting to [route]. */
      @Synchronized fun connected(route: Route) {
        _failedRoutes.remove(route)
      }
    
      /** Returns true if [route] has failed recently and should be avoided. */
      @Synchronized fun shouldPostpone(route: Route): Boolean = route in _failedRoutes
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 14:55:09 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/connection/RoutePlanner.kt

     *     possible for shared exchanges to make requests to different host names! See
     *     [RealConnection.isEligible] for details.
     *
     *  3. Attempt plans from prior connect attempts for this call. These occur as either follow-ups to
     *     failed connect attempts (such as trying the next [ConnectionSpec]), or as attempts that lost
     *     a race in fast follow-up.
     *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 4.2K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/internal/connection/FastFallbackExchangeFinderTest.kt

        assertEvents(
          "plan 1 TCP connected",
          "plan 0 cancel",
          "plan 1 TLS connecting...",
          "plan 1 TLS connect failed",
          "plan 2 TCP connecting...",
          "plan 2 TCP connected",
          "plan 2 TLS connecting...",
          "plan 2 TLS connected",
        )
    
        taskFaker.advanceUntil(270.ms)
        assertEvents(
          "plan 0 TCP connect canceled",
        )
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 24 04:40:49 GMT 2024
    - 20.9K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/SocksProxy.kt

            fromSink.writeByte(ADDRESS_TYPE_IPV4)
            fromSink.write(localAddress)
            fromSink.writeShort(toSocket.localPort)
            fromSink.emit()
            logger.log(Level.INFO, "SocksProxy connected $fromAddress to $toAddress")
    
            // Copy sources to sinks in both directions.
            val toSource = toSocket.source().buffer()
            val toSink = toSocket.sink().buffer()
            openSockets.add(toSocket)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 7.7K bytes
    - Viewed (0)
Back to top