Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 24 for Montes (0.71 sec)

  1. docs/changelogs/changelog_3x.md

        truncated response from an HTTPS proxy.
    
    
    ## Version 3.14.1
    
    _2019-04-10_
    
     *  Fix: Don't crash when an interceptor retries when there are no more routes. This was an
        edge-case regression introduced with the events cleanup in 3.14.0.
    
     *  Fix: Provide actionable advice when the exchange is non-null. Prior to 3.14, OkHttp would
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 14:55:54 GMT 2022
    - 50.8K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

        assertThat(response.body.string()).isEqualTo("abc")
        assertThat(server.takeRequest().sequenceNumber).isEqualTo(0)
    
        // Note that although we have two routes available, we only use one. The retry is permitted
        // because there are routes available, but it chooses the existing connection since it isn't
        // yet considered unhealthy.
        assertThat(server.takeRequest().sequenceNumber).isEqualTo(1)
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 75.3K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/connection/RealRoutePlanner.kt

        planToReplace: ConnectPlan? = null,
        routes: List<Route>? = null,
      ): ReusePlan? {
        val result =
          connectionPool.callAcquirePooledConnection(
            doExtensiveHealthChecks = connectionUser.doExtensiveHealthChecks(),
            address = address,
            connectionUser = connectionUser,
            routes = routes,
            requireMultiplexed = planToReplace != null && planToReplace.isReady,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 12K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/connection/RoutePlanner.kt

     *     a race in fast follow-up.
     *
     *  4. If there's no existing connection, make a list of routes (which may require blocking DNS
     *     lookups) and attempt a new connection them. When failures occur, retries iterate the list of
     *     available routes.
     *
     * If the pool gains an eligible connection while DNS, TCP, or TLS work is in flight, this finder
    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)
  5. okhttp/src/test/java/okhttp3/CallKotlinTest.kt

        server.enqueue(MockResponse(socketPolicy = DisconnectAtStart))
        server.enqueue(MockResponse(socketPolicy = DisconnectAtStart))
    
        client =
          client.newBuilder()
            .dns(DoubleInetAddressDns()) // Two routes so we get two failures.
            .build()
    
        val request = Request(server.url("/"))
        assertFailsWith<IOException> {
          client.newCall(request).execute()
        }.also { expected ->
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/http/RetryAndFollowUpInterceptor.kt

        if (requestSendStarted && requestIsOneShot(e, userRequest)) return false
    
        // This exception is fatal.
        if (!isRecoverable(e, requestSendStarted)) return false
    
        // No more routes to attempt.
        if (!call.retryAfterFailure()) return false
    
        // For failure recovery, use the same route selector with a new connection.
        return true
      }
    
      private fun requestIsOneShot(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:24:48 GMT 2024
    - 12.1K bytes
    - Viewed (4)
  7. docs/changelogs/changelog_2x.md

        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
        the cache, network, or both. OkHttp 2 offers more detail with raw access to
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 26.6K bytes
    - Viewed (0)
  8. okhttp-testing-support/src/main/kotlin/okhttp3/internal/RecordingOkAuthenticator.kt

      val responses = mutableListOf<Response>()
      val routes = mutableListOf<Route>()
    
      fun onlyResponse() = responses.single()
    
      fun onlyRoute() = routes.single()
    
      @Throws(IOException::class)
      override fun authenticate(
        route: Route?,
        response: Response,
      ): Request? {
        if (route == null) throw NullPointerException("route == null")
        responses += response
        routes += route
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/connection/RouteDatabase.kt

    package okhttp3.internal.connection
    
    import okhttp3.Route
    
    /**
     * A denylist of failed routes to avoid when creating a new connection to a target address. This is
     * used so that OkHttp can learn from its mistakes: if there was a failure attempting to connect to
     * a specific IP address or proxy server, that failure is remembered and alternate routes are
     * preferred.
     */
    class RouteDatabase {
      private val _failedRoutes = mutableSetOf<Route>()
    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)
  10. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnectionPool.kt

       *
       * If [routes] is non-null these are the resolved routes (ie. IP addresses) for the connection.
       * This is used to coalesce related domains to the same HTTP/2 connection, such as `square.com`
       * and `square.ca`.
       */
      fun callAcquirePooledConnection(
        doExtensiveHealthChecks: Boolean,
        address: Address,
        connectionUser: ConnectionUser,
        routes: List<Route>?,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 16.2K bytes
    - Viewed (0)
Back to top