- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 139 for pings (0.04 sec)
-
staging/src/k8s.io/apimachinery/pkg/util/httpstream/spdy/connection_test.go
srvErr <- fmt.Errorf("server: timeout waiting for connection to close") return case <-srvSPDYConn.CloseChan(): } // Count pings sent by the server. gotPings := atomic.LoadInt64(&pingsSent) if gotPings < 1 { t.Errorf("server: failed to send any pings (check logs)") } }() // Set up client connection. clConn, err := net.Dial("tcp4", listener.Addr().String()) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 01 11:58:57 UTC 2023 - 7.9K bytes - Viewed (0) -
pkg/keepalive/options.go
// whereas MaxServerConnectionAge* options are applicable on the server side only // (as implied by the options' name...) type Options struct { // After a duration of this time if the server/client doesn't see any activity it pings the peer to see if the transport is still alive. Time time.Duration // After having pinged for keepalive check, the server waits for a duration of Timeout and if no activity is seen even after that // the connection is closed.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 3.9K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/ws/RealWebSocket.kt
private var failed = false /** Total number of pings sent by this web socket. */ private var sentPingCount = 0 /** Total number of pings received by this web socket. */ private var receivedPingCount = 0 /** Total number of pongs received by this web socket. */ private var receivedPongCount = 0 /** True if we have sent a ping that is still awaiting a reply. */ private var awaitingPong = false
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Apr 01 14:21:25 UTC 2024 - 22.1K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/locklistener/FileLockContentionHandler.java
void stop(long lockId); int reservePort(); /** * Pings the lock owner with the give port to start the lock releasing * process in the owner. May not ping the owner if: * - The owner was already pinged about the given lock before and the lock release is in progress * - The ping through the underlying socket failed * * @return true if the owner was pinged in this call */
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 18 01:28:02 UTC 2024 - 1.6K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt
* The default value of 0 disables client-initiated pings. */ fun pingInterval( interval: Long, unit: TimeUnit, ) = apply { pingInterval = checkDuration("interval", interval, unit) } /** * Sets the interval between HTTP/2 and web socket pings initiated by this client. Use this to
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Sat Apr 06 04:21:33 UTC 2024 - 52K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/ws/WebSocketHttpTest.kt
assertThat(server.receivedPongCount()).isEqualTo(0) closeWebSockets(webSocket, server) } /** * Configure the websocket to send pings every 500 ms. Artificially prevent the server from * responding to pings. The client should give up when attempting to send its 2nd ping, at about * 1000 ms. */ @Test fun unacknowledgedPingFailsConnection() { assumeNotWindows() client =
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Sun Mar 31 17:16:15 UTC 2024 - 35.2K bytes - Viewed (0) -
src/internal/fuzz/worker_test.go
// a worker to respond to N pings. This is a rough measure of our RPC latency. func BenchmarkWorkerPing(b *testing.B) { if race.Enabled { b.Skip("TODO(48504): fix and re-enable") } b.SetParallelism(1) w := newWorkerForTest(b) for i := 0; i < b.N; i++ { if err := w.client.ping(context.Background()); err != nil { b.Fatal(err) } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 4.8K bytes - Viewed (0) -
docs/changelogs/changelog_3x.md
Previously if you configured a ping interval that would cause OkHttp to send pings, but it did not track whether the reply pongs were received. With this update OkHttp requires that every ping receive a response: if it does not the connection will be closed and the listener's `onFailure()` method will be called. Web sockets have always been had pings, but pings on HTTP/2 connections is
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Sun Feb 06 14:55:54 UTC 2022 - 50.8K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/integTest/groovy/org/gradle/cache/internal/DefaultFileLockManagerContentionIntegrationTest.groovy
def cleanup() { socketReceiverThread?.terminate = true } def "the lock holder is not hammered with ping requests for the shared lock"() { given: setupLockOwner() def pingRequestCount = 0 //do not handle requests: this simulates the situation were pings do not arrive replaceSocketReceiver { pingRequestCount++ } when:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jun 11 09:51:15 UTC 2024 - 15.1K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Connection.kt
payload2: Int, ) { try { writer.ping(reply, payload1, payload2) } catch (e: IOException) { failConnection(e) } } /** For testing: sends a ping and waits for a pong. */ @Throws(InterruptedException::class) fun writePingAndAwaitPong() { writePing() awaitPong() } /** For testing: sends a ping to be awaited with [awaitPong]. */
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Sat Apr 20 17:03:43 UTC 2024 - 32.6K bytes - Viewed (0)