- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for fastFallback (0.05 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/RouteFailureTest.kt
dns[server1.hostName] = listOf(ipv6, ipv4) socketFactory[ipv6] = server1.socketAddress socketFactory[ipv4] = server2.socketAddress client = client .newBuilder() .fastFallback(false) .apply { retryOnConnectionFailure = false }.build() executeSynchronously(request) .assertFailureMatches("stream was reset: REFUSED_STREAM")
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 11.7K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/ConnectionListenerTest.kt
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() { platform.assumeNotOpenJSSE()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 9.8K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/connection/RouteSelectorTest.kt
private fun newRouteSelector( address: Address, routeDatabase: RouteDatabase = this.routeDatabase, fastFallback: Boolean = false, call: RealCall = this.call, ): RouteSelector = RouteSelector( address = address, routeDatabase = routeDatabase, fastFallback = fastFallback, connectionUser = CallConnectionUser(call, ConnectionListener.NONE, newChain(call)), )
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri May 30 21:28:20 UTC 2025 - 20.7K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/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 Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 30 11:30:11 UTC 2025 - 17.8K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/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 Sep 05 11:42:10 UTC 2025 - Last Modified: Wed May 28 23:28:25 UTC 2025 - 12K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/FastFallbackTest.kt
.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 Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 10.4K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/ConnectionCoalescingTest.kt
HandshakeCertificates .Builder() .addTrustedCertificate(rootCa.certificate) .build() client = clientTestRule .newClientBuilder() .fastFallback(false) // Avoid data races. .dns(dns) .sslSocketFactory( handshakeCertificates.sslSocketFactory(), handshakeCertificates.trustManager, ).build()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jun 19 11:44:16 UTC 2025 - 19.1K bytes - Viewed (0) -
CHANGELOG.md
## Version 5.0.0-alpha.11 _2022-12-24_ * New: Enable fast fallback by default. It's our implementation of Happy Eyeballs, [RFC 8305][rfc_8305]. Disable with `OkHttpClient.Builder.fastFallback(false)`. * Fix: Don't log response bodies for server-sent events. * Fix: Skip early hints (status code 103) responses. * Fix: Don't log sensitive headers in `Request.toString()`.
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon Jul 07 19:32:33 UTC 2025 - 31.6K bytes - Viewed (1)