Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 48 for connected (0.19 sec)

  1. 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 Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  2. 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 Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 24 04:40:49 GMT 2024
    - 20.9K bytes
    - Viewed (0)
  3. 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 Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Apr 15 14:55:09 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/connection/ReusePlan.kt

    internal class ReusePlan(
      val connection: RealConnection,
    ) : RoutePlanner.Plan {
      override val isReady = true
    
      override fun connectTcp() = error("already connected")
    
      override fun connectTlsEtc() = error("already connected")
    
      override fun handleSuccess() = connection
    
      override fun cancel() = error("unexpected cancel")
    
      override fun retry() = error("unexpected retry")
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1K bytes
    - Viewed (0)
  5. android-test/README.md

    11:55:40 V/InstrumentationResultParser: OK (12 tests)
    ...
    11:55:40 I/XmlResultReporter: XML test result file generated at /Users/myusername/workspace/okhttp/android-test/build/outputs/androidTest-results/connected/TEST-pixel3a-Q(AVD) - 10-android-test-.xml. Total tests 13, passed 11, assumption_failure 1, ignored 1,
    ...
    BUILD SUCCESSFUL in 1m 30s
    63 actionable tasks: 61 executed, 2 up-to-date
    
    ```
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Tue Feb 14 08:26:50 GMT 2023
    - 2.5K bytes
    - Viewed (0)
  6. 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 Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  7. docs/features/events.md

    0002 0.019 dnsEnd
    0001 0.028 connectStart
    0002 0.025 connectStart
    0002 0.072 secureConnectStart
    0001 0.075 secureConnectStart
    0001 0.386 secureConnectEnd
    0002 0.390 secureConnectEnd
    0002 0.400 connectEnd
    0001 0.403 connectEnd
    0002 0.401 connectionAcquired
    0001 0.404 connectionAcquired
    0001 0.406 requestHeadersStart
    0002 0.403 requestHeadersStart
    0001 0.414 requestHeadersEnd
    0002 0.411 requestHeadersEnd
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 7.7K bytes
    - Viewed (0)
  8. okhttp-testing-support/src/main/kotlin/okhttp3/RecordingConnectionListener.kt

        failure: IOException,
      ) = logEvent(
        ConnectionEvent.ConnectFailed(System.nanoTime(), route, call, failure),
      )
    
      override fun connectEnd(
        connection: Connection,
        route: Route,
        call: Call,
      ) {
        logEvent(ConnectionEvent.ConnectEnd(System.nanoTime(), connection, route, call))
      }
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/ServerTruncatesRequestTest.kt

        expectedEvents += "DnsEnd"
        expectedEvents += "ConnectStart"
        if (https) {
          expectedEvents += "SecureConnectStart"
          expectedEvents += "SecureConnectEnd"
        }
        expectedEvents += "ConnectEnd"
        expectedEvents += "ConnectionAcquired"
        expectedEvents += "RequestHeadersStart"
        expectedEvents += "RequestHeadersEnd"
        expectedEvents += "RequestBodyStart"
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

          )
        assertContent("A", response)
        val connect1 = server.takeRequest()
        assertThat(connect1.requestLine).isEqualTo("CONNECT android.com:443 HTTP/1.1")
        assertThat(connect1.headers["Proxy-Authorization"]).isNull()
        val connect2 = server.takeRequest()
        assertThat(connect2.requestLine).isEqualTo("CONNECT android.com:443 HTTP/1.1")
        assertThat(connect2.headers["Proxy-Authorization"])
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 131.7K bytes
    - Viewed (0)
Back to top