Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 40 for Account (0.18 sec)

  1. okhttp/src/test/java/okhttp3/internal/ws/WebSocketReaderTest.kt

        }
        var count = 0
        while (!data.exhausted()) {
          assertFailsWith<ProtocolException> {
            clientReader.processNextFrame()
          }.also { expected ->
            assertThat(expected.message!!)
              .matches(Regex("Code \\d+ is reserved and may not be used."))
          }
          count++
        }
        assertThat(count).isEqualTo(1988)
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 14.4K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/concurrent/TaskRunnerRealBackendTest.kt

          Thread.sleep(250)
          backend.shutdown()
          return@schedule -1L
        }
    
        assertThat(queue.idleLatch().await(500L, TimeUnit.MILLISECONDS)).isTrue()
        assertThat(queue.idleLatch().count).isEqualTo(0)
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/InterceptorTest.kt

            override fun read(
              sink: Buffer,
              byteCount: Long,
            ): Long {
              val mixedCase = Buffer()
              val count = original.read(mixedCase, byteCount)
              sink.writeUtf8(mixedCase.readUtf8().uppercase())
              return count
            }
          }
        }
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Jan 14 10:20:09 GMT 2024
    - 27.8K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Writer.kt

          frameHeader(
            streamId = 0,
            length = settings.size() * 6,
            type = TYPE_SETTINGS,
            flags = FLAG_NONE,
          )
          for (i in 0 until Settings.COUNT) {
            if (!settings.isSet(i)) continue
            val id =
              when (i) {
                4 -> 3 // SETTINGS_MAX_CONCURRENT_STREAMS renumbered.
                7 -> 4 // SETTINGS_INITIAL_WINDOW_SIZE renumbered.
    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)
  5. okhttp/src/main/kotlin/okhttp3/internal/http/HttpHeaders.kt

        val parameters = mutableMapOf<String?, String>()
        eqCount += skipAll('='.code.toByte())
        while (true) {
          if (peek == null) {
            peek = readToken()
            if (skipCommasAndWhitespace()) break // We peeked a scheme name followed by ','.
            eqCount = skipAll('='.code.toByte())
          }
          if (eqCount == 0) break // We peeked a scheme name.
          if (eqCount > 1) return // Unexpected '=' characters.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/ws/WebSocketHttpTest.kt

          object : WebSocketListener() {
            override fun onFailure(
              webSocket: WebSocket,
              t: Throwable,
              response: Response?,
            ) {
              if (attempts.count > 0) {
                clientListener.setNextEventDelegate(this)
                webSockets.add(client.newWebSocket(request, clientListener))
                attempts.countDown()
              }
            }
          }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 35.2K bytes
    - Viewed (1)
  7. okhttp/src/test/java/okhttp3/internal/http2/HpackTest.kt

      // Example taken from twitter/hpack DecoderTest.testInsidiousMaxHeaderSize
      @Test
      fun readHeaderTableStateChangeInsidiousMaxHeaderByteCount() {
        bytesIn.writeByte(0x3f)
        bytesIn.write("e1ffffff07".decodeHex()) // count = -2147483648
        assertFailsWith<IOException> {
          hpackReader!!.readHeaders()
        }.also { expected ->
          assertThat(expected.message)
            .isEqualTo("Invalid dynamic table size update -2147483648")
        }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 38.2K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/http2/Settings.kt

     * Settings are [connection][Http2Connection] scoped.
     */
    class Settings {
      /** Bitfield of which flags that values. */
      private var set: Int = 0
    
      /** Flag values. */
      private val values = IntArray(COUNT)
    
      /** Returns -1 if unset. */
      val headerTableSize: Int
        get() {
          val bit = 1 shl HEADER_TABLE_SIZE
          return if (bit and set != 0) values[HEADER_TABLE_SIZE] else -1
        }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/Cache.kt

     * ## Cache Optimization
     *
     * To measure cache effectiveness, this class tracks three statistics:
     *
     *  * **[Request Count:][requestCount]** the number of HTTP requests issued since this cache was
     *    created.
     *  * **[Network Count:][networkCount]** the number of those requests that required network use.
     *  * **[Hit Count:][hitCount]** the number of those requests whose responses were served by the
     *    cache.
     *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  10. docs/changelogs/changelog_3x.md

         com.squareup.okio:okio:1.14.0
         ```
    
     *  Fix: Handle `HTTP/1.1 100 Continue` status lines, even on requests that did
        not send the `Expect: continue` request header.
     *  Fix: Do not count web sockets toward the dispatcher's per-host connection
        limit.
     *  Fix: Avoid using invalid HTTPS sessions. This prevents OkHttp from crashing
        with the error, `Unexpected TLS version: NONE`.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 14:55:54 GMT 2022
    - 50.8K bytes
    - Viewed (0)
Back to top