Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for NO_ERROR (0.26 sec)

  1. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

                "and responded: $response protocol is $protocol",
            )
          }
    
          when (socketPolicy) {
            DisconnectAtEnd -> {
              stream.connection.shutdown(ErrorCode.NO_ERROR)
            }
            is DoNotReadRequestBody -> {
              stream.close(ErrorCode.fromHttp2(socketPolicy.http2ErrorCode)!!, null)
            }
            else -> {
            }
          }
        }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 37.4K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

        peer.acceptFrame() // PING
        peer.sendFrame().headers(false, 3, headerEntries("a", "android"))
        peer.sendFrame().data(true, 3, Buffer().writeUtf8("robot"), 5)
        peer.sendFrame().rstStream(3, ErrorCode.NO_ERROR)
        peer.sendFrame().ping(true, Http2Connection.AWAIT_PING, 0) // PONG
        peer.play()
    
        // Play it back.
        val connection = connect(peer)
        val stream = connection.newStream(headerEntries(), false)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 75.4K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Connection.kt

       * Closes this connection. This cancels all open streams and unanswered pings. It closes the
       * underlying input and output streams and shuts down internal task queues.
       */
      override fun close() {
        close(ErrorCode.NO_ERROR, ErrorCode.CANCEL, null)
      }
    
      internal fun close(
        connectionCode: ErrorCode,
        streamCode: ErrorCode,
        cause: IOException?,
      ) {
        this.assertThreadDoesntHoldLock()
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 32.6K bytes
    - Viewed (0)
Back to top