- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 49 for unhealthy (0.52 sec)
-
src/main/java/jcifs/smb/SmbTransportPoolImpl.java
transport.disconnect(true, true); } catch (Exception e) { log.debug("Error disconnecting unhealthy transport: {}", e.getMessage()); } } if (!unhealthy.isEmpty()) { log.info("Removed {} unhealthy connections from pool", unhealthy.size()); } // Perform maintenance tasks performMaintenanceTasks(); } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 33.4K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealConnectionPool.kt
true } } } if (!acquired) continue // Confirm the connection is healthy and return it. if (connection.isHealthy(doExtensiveHealthChecks)) return connection // In the second synchronized block, release the unhealthy acquired connection. We're also on // the hook to close this connection if it's no longer in use. val noNewExchangesEvent: Boolean
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Tue Jun 03 17:10:08 UTC 2025 - 16.1K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealRoutePlanner.kt
// Make sure this connection is healthy & eligible for new exchanges. If it's no longer needed // then we're on the hook to close it. val healthy = candidate.isHealthy(connectionUser.doExtensiveHealthChecks()) var noNewExchangesEvent = false val toClose: Socket? = candidate.withLock { when { !healthy -> { noNewExchangesEvent = !candidate.noNewExchanges
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/commonJvmAndroid/kotlin/okhttp3/internal/-UtilJvm.kt
* attempting to read with a short timeout. If the fails immediately we know the socket is * unhealthy. * * @param source the source used to read bytes from the socket. */ internal fun Socket.isHealthy(source: BufferedSource): Boolean = try { val readTimeout = soTimeout try { soTimeout = 1 !source.exhausted() } finally {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 10.2K bytes - Viewed (0) -
src/main/java/jcifs/smb/MultiChannelManager.java
public void decrementConnections() { activeConnections.decrementAndGet(); } public boolean isHealthy() { return isHealthy; } public void setHealthy(boolean healthy) { this.isHealthy = healthy; this.lastHealthCheck = System.currentTimeMillis(); } public long getLastHealthCheck() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 20.5K bytes - Viewed (0) -
docs/changelogs/changelog_4x.md
`okhttp-tls` module. * Upgrade: [Kotlin 1.3.71][kotlin_1_3_71]. ## Version 4.5.0 _2020-04-06_ **This release fixes a severe bug where OkHttp incorrectly detected and recovered from unhealthy connections.** Stale or canceled connections were incorrectly attempted when they shouldn't have been, leading to rare cases of infinite retries. Please upgrade to this release!
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Apr 17 13:25:31 UTC 2024 - 25.2K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/ConnectionCoalescingTest.kt
* - The second request uses the coalesced connection from request1. * - The coalesced connection is violently closed after servicing the first request. * - The second request discovers the coalesced connection is unhealthy just after acquiring it. */ @Test fun coalescedConnectionDestroyedAfterAcquire() { server.enqueue(MockResponse()) server.enqueue(MockResponse())
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jun 19 11:44:16 UTC 2025 - 19.1K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/Http2ConnectionTest.kt
// When the timeout is sent the connection doesn't immediately go unhealthy. assertThat(connection.isHealthy(System.nanoTime())).isTrue() // But if the ping doesn't arrive, the connection goes unhealthy. Thread.sleep(TimeUnit.NANOSECONDS.toMillis(Http2Connection.DEGRADED_PONG_TIMEOUT_NS.toLong())) assertThat(connection.isHealthy(System.nanoTime())).isFalse()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 75.5K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2Connection.kt
private var degradedPingsSent = 0L private var degradedPongsReceived = 0L private var awaitPingsSent = 0L private var awaitPongsReceived = 0L /** Consider this connection to be unhealthy if a degraded pong isn't received by this time. */ private var degradedPongDeadlineNs = 0L internal val flowControlListener: FlowControlListener = builder.flowControlListener
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 31.8K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt
if (connection!!.isHealthy(false)) { Thread.sleep(100L) } if (connection.isHealthy(false)) { Thread.sleep(2000L) } if (connection.isHealthy(false)) { throw TimeoutException("connection didn't shutdown within timeout") } } /** * This simulates a race condition where we receive a healthy HTTP/2 connection and just prior to
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 73.4K bytes - Viewed (0)