Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for writeData (0.39 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2Stream.kt

            writeBytesTotal += toWrite
            outFinished = outFinishedOnLastFrame && toWrite == sendBuffer.size
          }
    
          writeTimeout.enter()
          try {
            connection.writeData(id, outFinished, sendBuffer, toWrite)
          } finally {
            writeTimeout.exitAndThrowIfTimedOut()
          }
        }
    
        @Throws(IOException::class)
        override fun flush() {
          assertLockNotHeld()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 07 18:57:05 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2Connection.kt

       *
       * Zero [byteCount] writes are not subject to flow control and will not block. The only use case
       * for zero [byteCount] is closing a flushed output stream.
       */
      @Throws(IOException::class)
      fun writeData(
        streamId: Int,
        outFinished: Boolean,
        buffer: Buffer?,
        byteCount: Long,
      ) {
        // Empty data frames are not flow-controlled.
        if (byteCount == 0L) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 31.8K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt

                  override fun writeTo(sink: BufferedSink) {
                    sink.write(postBytes) // push bytes into the stream's buffer
                    sink.flush() // Http2Connection.writeData subject to write window
                    sink.close() // Http2Connection.writeData empty frame
                  }
                },
            ),
          )
        val response = call.execute()
        assertThat(response.body.string()).isEqualTo("ABCDE")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 73.4K bytes
    - Viewed (0)
  4. okhttp/src/androidMain/baseline-prof.txt

    HSPLokhttp3/internal/http2/Http2Connection;->shutdown(Lokhttp3/internal/http2/ErrorCode;)V
    HSPLokhttp3/internal/http2/Http2Connection;->updateConnectionFlowControl$okhttp(J)V
    HSPLokhttp3/internal/http2/Http2Connection;->writeData(IZLokio/Buffer;J)V
    HSPLokhttp3/internal/http2/Http2ExchangeCodec;-><clinit>()V
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Dec 30 23:28:56 UTC 2024
    - 127.9K bytes
    - Viewed (0)
Back to top