Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for Perron (0.17 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnection.kt

        lock.withLock {
          if (e is StreamResetException) {
            when {
              e.errorCode == ErrorCode.REFUSED_STREAM -> {
                // Stop using this connection on the 2nd REFUSED_STREAM error.
                refusedStreamCount++
                if (refusedStreamCount > 1) {
                  noNewExchangesEvent = !noNewExchanges
                  noNewExchanges = true
                  routeFailureCount++
                }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  2. okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt

          }
        }
    
        override fun iterator() = error("unsupported")
    
        override fun offer(e: T) = error("unsupported")
    
        override fun peek(): T = error("unsupported")
    
        override fun offer(
          element: T,
          timeout: Long,
          unit: TimeUnit,
        ) = error("unsupported")
    
        override fun take() = error("unsupported")
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 29 00:33:04 GMT 2024
    - 12.6K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Writer.kt

        flags: Int,
      ) {
        if (type != TYPE_WINDOW_UPDATE && logger.isLoggable(FINE)) {
          logger.fine(frameLog(false, streamId, length, type, flags))
        }
        require(length <= maxFrameSize) { "FRAME_SIZE_ERROR length > $maxFrameSize: $length" }
        require(streamId and 0x80000000.toInt() == 0) { "reserved bit set: $streamId" }
        sink.writeMedium(length)
        sink.writeByte(type and 0xff)
        sink.writeByte(flags and 0xff)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Connection.kt

        override fun invoke() {
          var connectionErrorCode = ErrorCode.INTERNAL_ERROR
          var streamErrorCode = ErrorCode.INTERNAL_ERROR
          var errorException: IOException? = null
          try {
            reader.readConnectionPreface(this)
            while (reader.nextFrame(false, this)) {
            }
            connectionErrorCode = ErrorCode.NO_ERROR
            streamErrorCode = ErrorCode.CANCEL
          } catch (e: IOException) {
    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)
  5. okhttp/src/main/kotlin/okhttp3/Dispatcher.kt

      @JvmName("-deprecated_executorService")
      @Deprecated(
        message = "moved to val",
        replaceWith = ReplaceWith(expression = "executorService"),
        level = DeprecationLevel.ERROR,
      )
      fun executorService(): ExecutorService = executorService
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 9K bytes
    - Viewed (0)
  6. CHANGELOG.md

    and Android! Please report any issues you encounter: we'll fix them urgently.
    
     *  Fix: Attempt to read the response body even if the server canceled the request. This will cause
        some calls to return nice error codes like `HTTP/1.1 429 Too Many Requests` instead of transport
        errors like `SocketException: Connection reset` and `StreamResetException: stream was reset:
        CANCEL`.
     *  New: Support OSGi metadata.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 18 01:31:39 GMT 2024
    - 21.4K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Stream.kt

       * readers.
       */
      inner class FramingSource internal constructor(
        /** Maximum number of bytes to buffer before reporting a flow control error. */
        private val maxByteCount: Long,
        /**
         * True if either side has cleanly shut down this stream. We will receive no more bytes beyond
         * those already in the buffer.
         */
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 23.2K bytes
    - Viewed (1)
  8. okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

        peer.sendFrame().settings(Settings())
        peer.acceptFrame() // ACK
        peer.acceptFrame() // SYN_STREAM 3
        peer.acceptFrame() // SYN_STREAM 5
        peer.sendFrame().goAway(3, ErrorCode.PROTOCOL_ERROR, EMPTY_BYTE_ARRAY)
        peer.acceptFrame() // PING
        peer.sendFrame().ping(true, Http2Connection.AWAIT_PING, 0)
        peer.acceptFrame() // DATA STREAM 3
        peer.play()
    
        // Play it back.
    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)
  9. okhttp/src/test/java/okhttp3/internal/concurrent/TaskRunnerTest.kt

      }
    
      @Test fun cancelAllWhenEmptyDoesNotStartWorkerThread() {
        redQueue.execute("red task", 100.µs) {
          error("expected to be canceled")
        }
        assertThat(taskFaker.executeCallCount).isEqualTo(1)
    
        blueQueue.execute("task", 100.µs) {
          error("expected to be canceled")
        }
        assertThat(taskFaker.executeCallCount).isEqualTo(1)
    
        redQueue.cancelAll()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 29 00:33:04 GMT 2024
    - 23K bytes
    - Viewed (0)
Back to top