Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 45 for unnecessary (0.28 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/-HostnamesCommon.kt

        var value = 0
        val groupOffset = i
        while (i < limit) {
          val c = input[i]
          if (c < '0' || c > '9') break
          if (value == 0 && groupOffset != i) return false // Reject unnecessary leading '0's.
          value = value * 10 + c.code - '0'.code
          if (value > 255) return false // Value out of range.
          i++
        }
        val groupLength = i - groupOffset
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/cache2/RelayTest.kt

        upstream.writeUtf8("abcde")
        val relay = edit(file, upstream, metadata, 1024)
        val source1 = relay.newSource()
        val source2 = relay.newSource()
        source1!!.close()
        source1.close() // Unnecessary. Shouldn't decrement the reference count.
        assertThat(relay.isClosed).isFalse()
        source2!!.close()
        assertThat(relay.isClosed).isTrue()
        assertFile(Relay.PREFIX_DIRTY, -1L, -1, null, null)
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 8.1K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

            assertThat(throwables!!.size).isEqualTo(1)
          }
        }
      }
    
      /**
       * When a pooled connection fails, don't blame the route. Otherwise pooled connection failures can
       * cause unnecessary SSL fallbacks.
       *
       * https://github.com/square/okhttp/issues/515
       */
      @Test
      fun sslFallbackNotUsedWhenRecycledConnectionFails() {
        server.useHttps(handshakeCertificates.sslSocketFactory())
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 131.7K bytes
    - Viewed (0)
  4. okhttp-tls/src/main/kotlin/okhttp3/tls/HandshakeCertificates.kt

         *
         * The chain should include all intermediate certificates but does not need the root certificate
         * that we expect to be known by the remote peer. The peer already has that certificate so
         * transmitting it is unnecessary.
         */
        fun heldCertificate(
          heldCertificate: HeldCertificate,
          vararg intermediates: X509Certificate,
        ) = apply {
          this.heldCertificate = heldCertificate
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 8.5K bytes
    - Viewed (1)
  5. okhttp/src/main/kotlin/okhttp3/internal/http/RetryAndFollowUpInterceptor.kt

      /**
       * Figures out the HTTP request to make in response to receiving [userResponse]. This will
       * either add authentication headers, follow redirects or handle a client request timeout. If a
       * follow-up is either unnecessary or not applicable, this returns null.
       */
      @Throws(IOException::class)
      private fun followUpRequest(
        userResponse: Response,
        exchange: Exchange?,
      ): Request? {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:24:48 GMT 2024
    - 12.1K bytes
    - Viewed (4)
  6. okhttp/src/main/kotlin/okhttp3/internal/cache2/Relay.kt

     * is returned by upstream, or after the upstream source has been exhausted.
     *
     * As bytes are returned from upstream they are written to a local file. Downstream sources read
     * from this file as necessary.
     *
     * This class also keeps a small buffer of bytes recently read from upstream. This is intended to
     * save a small amount of file I/O and data copying.
     */
    class Relay private constructor(
      /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnection.kt

      internal val lock: ReentrantLock = ReentrantLock()
    
      // These properties are guarded by [lock].
    
      /**
       * If true, no new exchanges can be created on this connection. It is necessary to set this to
       * true when removing a connection from the pool; otherwise a racing caller might get it from the
       * pool when it shouldn't. Symmetrically, this must always be checked before returning a
    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)
  8. docs/changelogs/changelog_4x.md

     *  Fix: Don't track unusable routes beyond their usefulness. We had a bug where we could track
        certain bad routes indefinitely; now we only track the ones that could be necessary.
     *  Fix: Defer proxy selection until a proxy is required. This saves calls to `ProxySelector` on
        calls that use a pooled connection.
    
    
    ## Version 4.3.1
    
    _2020-01-07_
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 17 13:25:31 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Stream.kt

          val bytesDiscarded: Long
          ******@****.***ck {
            closed = true
            bytesDiscarded = readBuffer.size
            readBuffer.clear()
            condition.signalAll() // TODO(jwilson): Unnecessary?
          }
          if (bytesDiscarded > 0L) {
            updateConnectionFlowControl(bytesDiscarded)
          }
          cancelStreamIfNecessary()
        }
      }
    
      @Throws(IOException::class)
    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)
  10. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

     *
     *  * http://host:80/
     *
     *  * http://host
     *
     * Both the unnecessary port specification (`:80`) and the absent trailing slash (`/`) cause URI to
     * bucket the two URLs separately. This harms URI's usefulness in collections. Any application that
     * stores information-per-URL will need to either canonicalize manually, or suffer unnecessary
     * redundancy for such URLs.
     *
    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)
Back to top