- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 39 for deferred (0.04 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/FastFallbackTest.kt
}.also { expected -> assertThat(expected).hasMessage("timeout") } } /** * This test reproduces a crash where OkHttp attempted to use a deferred connection when the call * already had a healthy connection. It sets up a deferred connection by stalling the IPv6 * connect, and it sets up a same-connection retry with [ErrorCode.REFUSED_STREAM]. * * https://github.com/square/okhttp/pull/7190 */
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/androidMain/kotlin/okhttp3/internal/platform/android/DeferredSocketAdapter.kt
* limitations under the License. */ package okhttp3.internal.platform.android import javax.net.ssl.SSLSocket import okhttp3.Protocol /** * Deferred implementation of SocketAdapter that works by observing the socket * and initializing on first use. * * We use this because eager classpath checks cause confusion and excessive logging in Android,
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 2.1K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/FakeRoutePlanner.kt
fun addPlan(): FakePlan = FakePlan(nextPlanId++).also { plans += it } override fun isCanceled() = canceled override fun plan(): FakePlan { // Return deferred plans preferentially. These don't require addPlan(). if (deferredPlans.isNotEmpty()) return deferredPlans.removeFirst() as FakePlan if (nextPlanIndex >= plans.size && autoGeneratePlans) addPlan()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 6.1K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealRoutePlanner.kt
if (reuseCallConnection != null) return reuseCallConnection // Attempt to get a connection from the pool. val pooled1 = planReusePooledConnection() if (pooled1 != null) return pooled1 // Attempt a deferred plan before new routes. if (deferredPlans.isNotEmpty()) return deferredPlans.removeFirst() // Do blocking calls to plan a route for a new connection. val connect = planConnect()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed May 28 23:28:25 UTC 2025 - 12K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/ClosingFuture.java
put(closeable, executor); return; } } closeQuietly(closeable, executor); } /** * Returns a latch that reaches zero when this objects' deferred closeables have been closed. */ CountDownLatch whenClosedCountDown() { if (closed) { return new CountDownLatch(0); } synchronized (this) { if (closed) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 23 15:26:56 UTC 2025 - 97.8K bytes - Viewed (0) -
CHANGELOG.md
* Fix: Don't interpret trailers as headers after an HTTP/100 response. This was a bug only when the HTTP response body itself is empty. * Fix: Don't crash when a fast fallback call has both a deferred connection and a held connection. * Fix: `OkHttpClient` no longer implements `Cloneable`. It never should have; the class is immutable. This is left over from OkHttp 2.x (!) when that class was mutable. We're using the
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon Jul 07 19:32:33 UTC 2025 - 31.6K bytes - Viewed (1) -
guava/src/com/google/common/util/concurrent/ClosingFuture.java
put(closeable, executor); return; } } closeQuietly(closeable, executor); } /** * Returns a latch that reaches zero when this objects' deferred closeables have been closed. */ CountDownLatch whenClosedCountDown() { if (closed) { return new CountDownLatch(0); } synchronized (this) { if (closed) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 23 15:26:56 UTC 2025 - 98.1K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Ascii.java
/** * Start of Heading: A communication control character used at the beginning of a sequence of * characters which constitute a machine-sensible address or routing information. Such a sequence * is referred to as the "heading." An STX character has the effect of terminating a heading. * * @since 8.0 */ public static final byte SOH = 1; /**
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 21.7K bytes - Viewed (0) -
android/guava/src/com/google/common/net/HttpHeaders.java
/** * The HTTP <a href="https://www.w3.org/TR/referrer-policy/">{@code Referrer-Policy}</a> header * field name. * * @since 23.4 */ public static final String REFERRER_POLICY = "Referrer-Policy"; /** * Values for the <a href="https://www.w3.org/TR/referrer-policy/">{@code Referrer-Policy}</a> * header. * * @since 23.4 */
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Mar 27 20:37:16 UTC 2025 - 35.4K bytes - Viewed (0) -
guava/src/com/google/common/collect/Platform.java
*/ @GwtCompatible final class Platform { /** Returns the platform preferred implementation of a map based on a hash table. */ static <K extends @Nullable Object, V extends @Nullable Object> Map<K, V> newHashMapWithExpectedSize(int expectedSize) { return Maps.newHashMapWithExpectedSize(expectedSize); } /** * Returns the platform preferred implementation of an insertion ordered map based on a hash * table. */
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 5.5K bytes - Viewed (0)