Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for Montes (0.17 sec)

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

        // https://daniel.haxx.se/blog/2016/08/18/http2-connection-coalescing/
    
        // 1. This connection must be HTTP/2.
        if (http2Connection == null) return false
    
        // 2. The routes must share an IP address.
        if (routes == null || !routeMatchesAny(routes)) return false
    
        // 3. This connection's server certificate's must cover the new host.
        if (address.hostnameVerifier !== OkHostnameVerifier) return false
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  2. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt

          assertThat(derReader.readOctetString()).isEqualTo("Jones".encodeUtf8())
        }
    
        assertThat(derReader.hasNext()).isFalse()
      }
    
      @Test fun `encode primitive string`() {
        val buffer = Buffer()
        val derWriter = DerWriter(buffer)
    
        derWriter.write("test", tagClass = DerHeader.TAG_CLASS_UNIVERSAL, tag = 26L) {
          derWriter.writeOctetString("Jones".encodeUtf8())
        }
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 31.7K bytes
    - Viewed (0)
  3. docs/changelogs/changelog_4x.md

        automatically retry on an unshared connection.
     *  Fix: Don't crash if a TLS tunnel's response body is truncated.
     *  Fix: Don't track unusable routes beyond their usefulness. We had a bug where we could track
        certain bad routes indefinitely; now we only track the ones that could be necessary.
     *  Fix: Defer proxy selection until a proxy is required. This saves calls to `ProxySelector` on
        calls that use a pooled connection.
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 17 13:25:31 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  4. 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 Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 12K bytes
    - Viewed (0)
  5. 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 Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 4.2K bytes
    - Viewed (0)
  6. 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 Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/connection/RouteSelector.kt

        // Compute the next set of routes to attempt.
        val routes = mutableListOf<Route>()
        while (hasNextProxy()) {
          // Postponed routes are always tried last. For example, if we have 2 proxies and all the
          // routes for proxy1 should be postponed, we'll move to proxy2. Only after we've exhausted
          // all the good routes will we attempt the postponed routes.
          val proxy = nextProxy()
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Mar 06 17:33:38 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  8. 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 Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Apr 15 13:24:48 GMT 2024
    - 12.1K bytes
    - Viewed (4)
  9. 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 Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 26.6K bytes
    - Viewed (0)
  10. docs/features/connections.md

    In OkHttp some fields of the address come from the URL (scheme, hostname, port) and the rest come from the [OkHttpClient](https://square.github.io/okhttp/4.x/okhttp/okhttp3/-ok-http-client/).
    
    ### [Routes](https://square.github.io/okhttp/4.x/okhttp/okhttp3/-route/)
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Feb 21 03:33:59 GMT 2022
    - 5.4K bytes
    - Viewed (0)
Back to top