- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for writePingAndAwaitPong (0.07 seconds)
-
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)
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Thu Jul 31 04:18:40 GMT 2025 - 75.5K bytes - Click Count (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 {
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Thu Jul 31 04:18:40 GMT 2025 - 31.8K bytes - Click Count (0)