Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for RouteDatabase (0.12 sec)

  1. okhttp/src/test/java/okhttp3/internal/connection/RouteSelectorTest.kt

      }
    
      private fun newRouteSelector(
        address: Address,
        routeDatabase: RouteDatabase = this.routeDatabase,
        fastFallback: Boolean = false,
        call: RealCall = this.call,
      ): RouteSelector {
        return RouteSelector(
          address = address,
          routeDatabase = routeDatabase,
          fastFallback = fastFallback,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Mar 06 17:33:38 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/OkHttpClientTest.kt

        assertNotSame(
          client.routeDatabase,
          OkHttpClient.Builder()
            .build()
            .routeDatabase,
        )
    
        // same client with no change affecting route db
        assertSame(
          client.routeDatabase,
          client.newBuilder()
            .build()
            .routeDatabase,
        )
        assertSame(
          client.routeDatabase,
          client.newBuilder()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Mar 31 17:16:15 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/RouteFailureTest.kt

              retryOnConnectionFailure = false
            }
            .build()
    
        executeSynchronously(request)
          .assertFailureMatches("stream was reset: REFUSED_STREAM")
    
        assertThat(client.routeDatabase.failedRoutes).isEmpty()
        assertThat(server1.requestCount).isEqualTo(1)
        assertThat(server2.requestCount).isEqualTo(0)
    
        assertThat(clientTestRule.recordedConnectionEventTypes()).containsExactly(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue May 14 17:48:07 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/connection/RealRoutePlanner.kt

      private val socketReadTimeoutMillis: Int,
      private val pingIntervalMillis: Int,
      private val retryOnConnectionFailure: Boolean,
      private val fastFallback: Boolean,
      override val address: Address,
      private val routeDatabase: RouteDatabase,
      private val connectionUser: ConnectionUser,
    ) : RoutePlanner {
      private var routeSelection: RouteSelector.Selection? = null
      private var routeSelector: RouteSelector? = null
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 12K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/connection/RealCall.kt

              fastFallback = client.fastFallback,
              address = client.address(request.url),
              connectionUser = CallConnectionUser(this, connectionPool.connectionListener, chain),
              routeDatabase = client.routeDatabase,
            )
          this.exchangeFinder =
            when {
              client.fastFallback -> FastFallbackExchangeFinder(routePlanner, client.taskRunner)
              else -> SequentialExchangeFinder(routePlanner)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnection.kt

          val address = failedRoute.address
          address.proxySelector.connectFailed(
            address.url.toUri(),
            failedRoute.proxy.address(),
            failure,
          )
        }
    
        client.routeDatabase.failed(failedRoute)
      }
    
      /**
       * Track a failure using this connection. This may prevent both the connection and its route from
       * being used for future exchanges.
       */
      override fun trackFailure(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  7. docs/changelogs/changelog_2x.md

        version being used (HTTP/1.1, HTTP/2). The old name of this method was
        misleading; it was always used to configure redirects between `https://` and
        `http://` schemes.
    
     *  **RouteDatabase is no longer public API.** OkHttp continues to track which
        routes have failed but this is no exposed in the API.
    
     *  **ResponseSource is gone.** This enum exposed whether a response came from
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Feb 06 02:19:09 UTC 2022
    - 26.6K bytes
    - Viewed (0)
Back to top