Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for Reset (0.15 sec)

  1. CHANGELOG.md

        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.
     *  Upgrade: [Okio 2.9.0][okio_2_9_0].
    
        ```kotlin
        implementation("com.squareup.okio:okio:2.9.0")
        ```
    
    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)
  2. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Stream.kt

          check(isLocallyInitiated) { "remotely-initiated streams should have headers" }
        }
      }
    
      /**
       * Returns true if this stream is open. A stream is open until either:
       *
       *  * A `SYN_RESET` frame abnormally terminates the stream.
       *  * Both input and output streams have transmitted all data and headers.
       *
       * Note that the input stream may continue to yield data even after a stream reports itself as
    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)
  3. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

        val executeAtNanos = System.nanoTime()
        assertFailsWith<StreamResetException> {
          call.execute()
        }.also { expected ->
          assertThat(expected.message).isEqualTo(
            "stream was reset: PROTOCOL_ERROR",
          )
        }
        val elapsedUntilFailure = System.nanoTime() - executeAtNanos
        assertThat(TimeUnit.NANOSECONDS.toMillis(elapsedUntilFailure).toDouble())
          .isCloseTo(1000.0, 250.0)
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 75.3K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

        sink1.writeUtf8("abc")
        assertFailsWith<IOException> {
          sink2.writeUtf8("abc")
          sink2.flush()
        }.also { expected ->
          assertThat(expected.message).isEqualTo("stream was reset: REFUSED_STREAM")
        }
        sink1.writeUtf8("def")
        sink1.close()
        assertFailsWith<ConnectionShutdownException> {
          connection.newStream(headerEntries("c", "cola"), true)
        }
    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)
Back to top