- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for openStreamCount (0.05 seconds)
-
okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/Http2ConnectionTest.kt
// Play it back. val connection = connect(peer) connection.newStream(headerEntries("b", "banana"), false) assertThat(connection.openStreamCount()).isEqualTo(1) connection.writePingAndAwaitPong() // Ensure that the SYN_REPLY has been received. assertThat(connection.openStreamCount()).isEqualTo(0) // Verify the peer received what was expected. val synStream = peer.takeFrame()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
return@schedule pingIntervalNanos } } } } /** * Returns the number of [open streams][Http2Stream.isOpen] on this connection. */ fun openStreamCount(): Int = withLock { streams.size } fun getStream(id: Int): Http2Stream? = withLock { streams[id] } internal fun removeStream(streamId: Int): Http2Stream? { 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)