Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for RealRoutePlanner (0.08 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/connection/RealRoutePlanner.kt

    import okhttp3.internal.connection.Locks.withLock
    import okhttp3.internal.connection.RoutePlanner.Plan
    import okhttp3.internal.platform.Platform
    import okhttp3.internal.toHostHeader
    
    class RealRoutePlanner(
      private val taskRunner: TaskRunner,
      private val connectionPool: RealConnectionPool,
      private val readTimeoutMillis: Int,
      private val writeTimeoutMillis: Int,
      private val socketConnectTimeoutMillis: Int,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 12K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/ConnectionPool.kt

    import okhttp3.internal.connection.FastFallbackExchangeFinder
    import okhttp3.internal.connection.ForceConnectRoutePlanner
    import okhttp3.internal.connection.RealConnectionPool
    import okhttp3.internal.connection.RealRoutePlanner
    import okhttp3.internal.connection.RouteDatabase
    
    /**
     * Manages reuse of HTTP and HTTP/2 connections for reduced network latency. HTTP requests that
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 03 20:39:41 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  3. okhttp-testing-support/src/main/kotlin/okhttp3/TestValueFactory.kt

        )
      }
    
      fun newRoutePlanner(
        client: OkHttpClient,
        address: Address = newAddress(),
      ): RealRoutePlanner {
        val call = RealCall(client, Request(address.url), forWebSocket = false)
        val chain = newChain(call)
        return RealRoutePlanner(
          taskRunner = client.taskRunner,
          connectionPool = client.connectionPool.delegate,
          readTimeoutMillis = client.readTimeoutMillis,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/connection/ForceConnectRoutePlanner.kt

     */
    package okhttp3.internal.connection
    
    /**
     * A RoutePlanner that will always establish a new connection, ignoring any connection pooling
     */
    class ForceConnectRoutePlanner(private val delegate: RealRoutePlanner) : RoutePlanner by delegate {
      override fun plan(): RoutePlanner.Plan = delegate.planConnect() // not delegate.plan()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 03 20:39:41 UTC 2024
    - 932 bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnectionPool.kt

        }
    
        // If we got here then the policy was not satisfied -- open a connection!
        try {
          val connection = exchangeFinderFactory(this, state.address, PoolConnectionUser).find()
    
          // RealRoutePlanner will add the connection to the pool itself, other RoutePlanners may not
          // TODO: make all RoutePlanners consistent in this behavior
          if (connection !in connections) {
            connection.withLock { put(connection) }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/connection/RealCall.kt

              "please call response.close()"
          }
          check(!requestBodyOpen)
        }
    
        if (newRoutePlanner) {
          val routePlanner =
            RealRoutePlanner(
              taskRunner = client.taskRunner,
              connectionPool = connectionPool,
              readTimeoutMillis = client.readTimeoutMillis,
              writeTimeoutMillis = client.writeTimeoutMillis,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  7. okhttp-android/src/main/baseline-prof.txt

    HSPLokhttp3/internal/connection/RealRoutePlanner;-><init>(Lokhttp3/OkHttpClient;Lokhttp3/Address;Lokhttp3/internal/connection/RealCall;Lokhttp3/internal/http/RealInterceptorChain;)V
    HSPLokhttp3/internal/connection/RealRoutePlanner;->hasNext(Lokhttp3/internal/connection/RealConnection;)Z
    HSPLokhttp3/internal/connection/RealRoutePlanner;->isCanceled()Z
    HSPLokhttp3/internal/connection/RealRoutePlanner;->plan()Lokhttp3/internal/connection/RoutePlanner$Plan;
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Mar 21 11:22:00 UTC 2022
    - 127.9K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/connection/ConnectPlan.kt

      private val socketReadTimeoutMillis: Int,
      private val pingIntervalMillis: Int,
      private val retryOnConnectionFailure: Boolean,
      private val user: ConnectionUser,
      private val routePlanner: RealRoutePlanner,
      // Specifics to this plan.
      override val route: Route,
      internal val routes: List<Route>?,
      private val attempt: Int,
      private val tunnelRequest: Request?,
      internal val connectionSpecIndex: Int,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 18.6K bytes
    - Viewed (0)
Back to top