Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 369 for Size (0.13 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/tls/BasicCertificateChainCleaner.kt

          val trustedCert = trustRootIndex.findByIssuerAndSignature(toVerify)
          if (trustedCert != null) {
            if (result.size > 1 || toVerify != trustedCert) {
              result.add(trustedCert)
            }
            if (verifySignature(trustedCert, trustedCert, result.size - 2)) {
              return result // The self-signed cert is a root CA. We're done.
            }
            foundTrustedCertificate = true
            continue
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/ws/RealWebSocket.kt

        // If this frame overflows the buffer, reject it and close the web socket.
        if (queueSize + data.size > MAX_QUEUE_SIZE) {
          close(CLOSE_CLIENT_GOING_AWAY, null)
          return false
        }
    
        // Enqueue the message frame.
        queueSize += data.size.toLong()
        messageAndCloseQueue.add(Message(formatOpcode, data))
        runWriter()
        return true
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 01 14:21:25 GMT 2024
    - 22.1K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/http2/Header.kt

    data class Header(
      /** Name in case-insensitive ASCII encoding. */
      @JvmField val name: ByteString,
      /** Value in UTF-8 encoding. */
      @JvmField val value: ByteString,
    ) {
      @JvmField val hpackSize = 32 + name.size + value.size
    
      // TODO: search for toLowerCase and consider moving logic here.
      constructor(name: String, value: String) : this(name.encodeUtf8(), value.encodeUtf8())
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2K bytes
    - Viewed (0)
  4. docs/distributed/DESIGN.md

    - Choice of erasure set size is automatic based on the number of drives available, let's say for example if there are 32 servers and 32 drives which is a total of 1024 drives. In this scenario 16 becomes the erasure set size. This is decided based on the greatest common divisor (GCD) of acceptable erasure set sizes ranging from *4 to 16*.
    
    Plain Text
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Aug 15 23:04:20 GMT 2023
    - 8K bytes
    - Viewed (0)
  5. okhttp-testing-support/src/main/kotlin/okhttp3/DelegatingSSLSocket.kt

        delegate!!.keepAlive = keepAlive
      }
    
      @Throws(SocketException::class)
      override fun setSendBufferSize(size: Int) {
        delegate!!.sendBufferSize = size
      }
    
      @Throws(SocketException::class)
      override fun setReceiveBufferSize(size: Int) {
        delegate!!.receiveBufferSize = size
      }
    
      @Throws(SocketException::class)
      override fun setSoLinger(
        on: Boolean,
        timeout: Int,
      ) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.9K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Connection.kt

              }
            }
        }
      }
    
      companion object {
        const val OKHTTP_CLIENT_WINDOW_SIZE = 16 * 1024 * 1024
    
        val DEFAULT_SETTINGS =
          Settings().apply {
            set(Settings.INITIAL_WINDOW_SIZE, DEFAULT_INITIAL_WINDOW_SIZE)
            set(Settings.MAX_FRAME_SIZE, Http2.INITIAL_MAX_FRAME_SIZE)
          }
    
        const val INTERVAL_PING = 1
        const val DEGRADED_PING = 2
    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)
  7. okhttp/src/test/java/okhttp3/internal/idn/IdnStringprep.kt

        // 3 and 4. Check prohibited characters and bidi.
        val validateBuffer = mapResult.copy()
        var firstIsRandalcat = false
        while (!validateBuffer.exhausted()) {
          val first = validateBuffer.size == mapResult.size
          val codePoint = validateBuffer.readUtf8CodePoint()
          if (codePoint in prohibitSet) return null
    
          if (first) {
            firstIsRandalcat = codePoint in randalcatSet
    Plain Text
    - Registered: Fri Mar 29 11:42:11 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

     *
     * ```java
     * HttpUrl url = HttpUrl.parse("https://twitter.com/search?q=cute%20%23puppies&f=images");
     * for (int i = 0, size = url.querySize(); i < size; i++) {
     *   System.out.println(url.queryParameterName(i) + ": " + url.queryParameterValue(i));
     * }
     * ```
     *
     * which prints:
     *
     * ```
     * q: cute #puppies
     * f: images
     * ```
     *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 63.5K bytes
    - Viewed (1)
  9. okhttp/src/main/kotlin/okhttp3/internal/http/RealInterceptorChain.kt

      }
    
      override fun call(): Call = call
    
      override fun request(): Request = request
    
      @Throws(IOException::class)
      override fun proceed(request: Request): Response {
        check(index < interceptors.size)
    
        calls++
    
        if (exchange != null) {
          check(exchange.finder.routePlanner.sameHostAndPort(request.url)) {
            "network interceptor ${interceptors[index - 1]} must retain the same host and port"
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/internal/ws/RealWebSocketTest.kt

        )
      }
    
      @Test
      fun messagesNotCompressedWhenNotConfigured() {
        val message = repeat('a', RealWebSocket.DEFAULT_MINIMUM_DEFLATE_SIZE.toInt())
        server.webSocket!!.send(message)
        taskFaker.runTasks()
        assertThat(client.clientSourceBufferSize())
          .isGreaterThan(message.length.toLong()) // Not compressed.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 01:59:58 GMT 2024
    - 18.5K bytes
    - Viewed (0)
Back to top