Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for fastFallback (0.09 sec)

  1. okhttp/src/test/java/okhttp3/RouteFailureTest.kt

        dns[server1.hostName] = listOf(ipv6, ipv4)
        socketFactory[ipv6] = server1.inetSocketAddress
        socketFactory[ipv4] = server2.inetSocketAddress
    
        client =
          client.newBuilder()
            .fastFallback(false)
            .apply {
              retryOnConnectionFailure = false
            }
            .build()
    
        executeSynchronously(request)
          .assertFailureMatches("stream was reset: REFUSED_STREAM")
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue May 14 17:48:07 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  2. 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,
          connectionUser = CallConnectionUser(call, ConnectionListener.NONE, newChain(call)),
        )
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Mar 06 17:33:38 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  3. okhttp-testing-support/src/main/kotlin/okhttp3/TestValueFactory.kt

          socketReadTimeoutMillis = chain.readTimeoutMillis,
          pingIntervalMillis = client.pingIntervalMillis,
          retryOnConnectionFailure = client.retryOnConnectionFailure,
          fastFallback = client.fastFallback,
          address = address,
          routeDatabase = client.routeDatabase,
          connectionUser =
            CallConnectionUser(
              call,
              client.connectionPool.delegate.connectionListener,
    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/ConnectionPool.kt

                  socketReadTimeoutMillis = socketReadTimeoutMillis,
                  pingIntervalMillis = pingIntervalMillis,
                  retryOnConnectionFailure = retryOnConnectionFailure,
                  fastFallback = fastFallback,
                  address = address,
                  routeDatabase = routeDatabase,
                  connectionUser = user,
                ),
              ),
              taskRunner,
            )
          },
        ),
      )
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 03 20:39:41 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/ConnectionListenerTest.kt

      private val listener = RecordingConnectionListener()
      private val handshakeCertificates = localhost()
    
      open val fastFallback: Boolean get() = true
    
      private var client: OkHttpClient =
        clientTestRule.newClientBuilder()
          .connectionPool(ConnectionPool(connectionListener = listener))
          .fastFallback(fastFallback)
          .build()
    
      @BeforeEach
      fun setUp(server: MockWebServer?) {
        this.server = server
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  6. 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)
    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/src/main/kotlin/okhttp3/internal/connection/RealRoutePlanner.kt

          newRouteSelector =
            RouteSelector(
              address = address,
              routeDatabase = routeDatabase,
              connectionUser = connectionUser,
              fastFallback = fastFallback,
            )
          routeSelector = newRouteSelector
        }
    
        // List available IP addresses for the current proxy. This may block in Dns.lookup().
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 12K bytes
    - Viewed (0)
  8. okhttp-android/README.md

    OkHttp Android
    ==============
    
    Enhanced APIs for using OkHttp on Android.
    
    At the moment, this will mostly likely only be useful for fastFallback.
    
    Download
    --------
    
    ```kotlin
    implementation("com.squareup.okhttp3:okhttp-android:4.12.0")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Dec 17 15:34:10 UTC 2023
    - 242 bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt

         * wasted resources.
         *
         * Defaults to enabled, call with [fastFallback] = false to revert to 4.x behaviour.
         *
         * [rfc_6555]: https://datatracker.ietf.org/doc/html/rfc6555
         */
        fun fastFallback(fastFallback: Boolean) =
          apply {
            this.fastFallback = fastFallback
          }
    
        /**
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 06 04:21:33 UTC 2024
    - 52K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/FastFallbackTest.kt

          clientTestRule.newClientBuilder()
            .eventListenerFactory(clientTestRule.wrap(listener))
            .connectTimeout(60, TimeUnit.SECONDS) // Deliberately exacerbate slow fallbacks.
            .dns { dnsResults }
            .fastFallback(true)
            .build()
        url =
          serverIpv4.url("/")
            .newBuilder()
            .host("localhost")
            .build()
      }
    
      @AfterEach
      internal fun tearDown() {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 10.3K bytes
    - Viewed (0)
Back to top