Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for goAway (0.19 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2.kt

      const val TYPE_HEADERS = 0x1
      const val TYPE_PRIORITY = 0x2
      const val TYPE_RST_STREAM = 0x3
      const val TYPE_SETTINGS = 0x4
      const val TYPE_PUSH_PROMISE = 0x5
      const val TYPE_PING = 0x6
      const val TYPE_GOAWAY = 0x7
      const val TYPE_WINDOW_UPDATE = 0x8
      const val TYPE_CONTINUATION = 0x9
    
      const val FLAG_NONE = 0x0
      const val FLAG_ACK = 0x1 // Used for settings and ping.
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/http2/FrameLogTest.kt

        assertThat(frameLog(true, 3, 226, TYPE_DATA, FLAG_END_STREAM))
          .isEqualTo("<< 0x00000003   226 DATA          END_STREAM")
        assertThat(frameLog(false, 0, 8, TYPE_GOAWAY, FLAG_NONE))
          .isEqualTo(">> 0x00000000     8 GOAWAY        ")
      }
    
      /** Window update frames have special formatting.  */
      @Test
      fun windowUpdateFrames() {
        assertThat(frameLogWindowUpdate(false, 0, 4, Int.MAX_VALUE.toLong()))
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/http2/ConnectionShutdownException.kt

     * limitations under the License.
     */
    package okhttp3.internal.http2
    
    import java.io.IOException
    
    /**
     * Thrown when an HTTP/2 connection is shutdown (either explicitly or if the peer has sent a GOAWAY
     * frame) and an attempt is made to use the connection.
     */
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 875 bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/http2/Http2Test.kt

        val expectedError = ErrorCode.PROTOCOL_ERROR
        val expectedData: ByteString = "abcdefgh".encodeUtf8()
    
        // Compose the expected GOAWAY frame without debug data.
        writeMedium(frame, 8 + expectedData.size)
        frame.writeByte(TYPE_GOAWAY)
        frame.writeByte(FLAG_NONE)
        frame.writeInt(0) // connection-scope
        frame.writeInt(0) // never read any stream!
        frame.writeInt(expectedError.httpCode)
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 28.1K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

        val pingFrame = peer.takeFrame()
        assertThat(pingFrame.type).isEqualTo(Http2.TYPE_PING)
        val goaway = peer.takeFrame()
        assertThat(goaway.type).isEqualTo(Http2.TYPE_GOAWAY)
        assertThat(goaway.streamId).isEqualTo(0)
        assertThat(goaway.errorCode).isEqualTo(ErrorCode.PROTOCOL_ERROR)
      }
    
      @Test fun close() {
        // Write the mocking script.
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 75.4K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/http2/MockHttp2Peer.kt

          this.ack = ack
          this.payload1 = payload1
          this.payload2 = payload2
        }
    
        override fun goAway(
          lastGoodStreamId: Int,
          errorCode: ErrorCode,
          debugData: ByteString,
        ) {
          check(type == -1)
          this.type = Http2.TYPE_GOAWAY
          this.streamId = lastGoodStreamId
          this.errorCode = errorCode
          this.data = debugData.toByteArray()
        }
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Reader.kt

      ) {
        if (length < 8) throw IOException("TYPE_GOAWAY length < 8: $length")
        if (streamId != 0) throw IOException("TYPE_GOAWAY streamId != 0")
        val lastStreamId = source.readInt()
        val errorCodeInt = source.readInt()
        val opaqueDataLength = length - 8
        val errorCode =
          ErrorCode.fromHttp2(errorCodeInt) ?: throw IOException(
            "TYPE_GOAWAY unexpected error code: $errorCodeInt",
          )
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 19.9K bytes
    - Viewed (0)
  8. docs/contribute/debug_logging.md

    [2020-01-01 00:00:00] << 0x00000003   288 DATA
    [2020-01-01 00:00:00] << 0x00000003     0 DATA          END_STREAM
    [2020-01-01 00:00:00] << 0x00000000     8 GOAWAY
    [2020-01-01 00:00:05] << 0x00000000     8 GOAWAY
    ```
    
    ### Task Runner Logging 
    
    This logs task enqueues, starts, and finishes.
    
    ```
    [2020-01-01 00:00:00] Q10000 scheduled after   0 µs: OkHttp ConnectionPool
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Feb 06 16:35:36 GMT 2022
    - 2.7K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/internal/http2/BaseTestHandler.kt

        fail("")
      }
    
      override fun ackSettings() {
        fail("")
      }
    
      override fun ping(
        ack: Boolean,
        payload1: Int,
        payload2: Int,
      ) {
        fail("")
      }
    
      override fun goAway(
        lastGoodStreamId: Int,
        errorCode: ErrorCode,
        debugData: ByteString,
      ) {
        fail("")
      }
    
      override fun windowUpdate(
        streamId: Int,
        windowSizeIncrement: Long,
      ) {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Writer.kt

       */
      @Throws(IOException::class)
      fun goAway(
        lastGoodStreamId: Int,
        errorCode: ErrorCode,
        debugData: ByteArray,
      ) {
        this.withLock {
          if (closed) throw IOException("closed")
          require(errorCode.httpCode != -1) { "errorCode.httpCode == -1" }
          frameHeader(
            streamId = 0,
            length = 8 + debugData.size,
            type = TYPE_GOAWAY,
            flags = FLAG_NONE,
          )
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 11.3K bytes
    - Viewed (0)
Back to top