- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for writePingAndAwaitPong (0.33 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/Http2ConnectionTest.kt
peer.acceptFrame() // RST_STREAM peer.play() // Play it back. val connection = connect(peer) connection.writePingAndAwaitPong() // Make sure settings have been acked. val stream = connection.newStream(headerEntries("b", "banana"), true) connection.writePingAndAwaitPong() // Make sure the window update has been received. val sink = stream.sink stream.writeTimeout().timeout(500, TimeUnit.MILLISECONDS)
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
} 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]. */ @Throws(InterruptedException::class) fun writePing() { withLock {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 31.8K bytes - Viewed (0)