Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for closeLater (0.22 sec)

  1. mockwebserver/src/main/kotlin/mockwebserver3/internal/duplex/RealStream.kt

      private val http2Stream: Http2Stream,
    ) : Stream {
      override val requestBody = http2Stream.getSource().buffer()
      override val responseBody = http2Stream.getSink().buffer()
    
      override fun cancel() {
        http2Stream.closeLater(ErrorCode.CANCEL)
      }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Dec 31 18:24:52 GMT 2022
    - 1.1K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2ExchangeCodec.kt

        // We may have been asked to cancel while creating the new stream and sending the request
        // headers, but there was still no stream to close.
        if (canceled) {
          stream!!.closeLater(ErrorCode.CANCEL)
          throw IOException("Canceled")
        }
        stream!!.readTimeout().timeout(chain.readTimeoutMillis.toLong(), TimeUnit.MILLISECONDS)
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Stream.kt

        }
        connection.writeSynReset(id, rstStatusCode)
      }
    
      /**
       * Abnormally terminate this stream. This enqueues a `RST_STREAM` frame and returns immediately.
       */
      fun closeLater(errorCode: ErrorCode) {
        if (!closeInternal(errorCode, null)) {
          return // Already closed.
        }
        connection.writeSynResetLater(id, errorCode)
      }
    
      /** Returns true if this stream was closed. */
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 23.2K bytes
    - Viewed (1)
Back to top