Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for Truong (0.16 sec)

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

            if (!decodeIpv4Suffix(input, groupOffset, limit, address, b - 2)) return null
            b += 2 // We rewound two bytes and then added four.
            break
          } else {
            return null // Wrong delimiter.
          }
        }
    
        // Read a group, one to four hex digits.
        var value = 0
        groupOffset = i
        while (i < limit) {
          val hexDigit = input[i].parseHexDigit()
    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/URLConnectionTest.kt

      }
    
      @Test
      fun connectViaHttpProxyToHttpsUsingHttpsProxySystemProperty() {
        testConnectViaHttpProxyToHttps(ProxyConfig.HTTPS_PROXY_SYSTEM_PROPERTY)
      }
    
      /**
       * We were verifying the wrong hostname when connecting to an HTTPS site through a proxy.
       * http://b/3097277
       */
      private fun testConnectViaHttpProxyToHttps(proxyConfig: ProxyConfig) {
        val hostnameVerifier = RecordingHostnameVerifier()
    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)
  3. okhttp/src/main/kotlin/okhttp3/Cache.kt

          private var canRemove = false
    
          override fun hasNext(): Boolean {
            if (nextUrl != null) return true
    
            canRemove = false // Prevent delegate.remove() on the wrong item!
            while (delegate.hasNext()) {
              try {
                delegate.next().use { snapshot ->
                  val metadata = snapshot.getSource(ENTRY_METADATA).buffer()
    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)
  4. okhttp/src/test/java/okhttp3/CallTest.kt

              CertificatePinner.Builder()
                .add(server.hostName, "sha1/DmxUShsZuNiqPQsX2Oi9uv2sCnw=")
                .build(),
            )
            .build()
    
        // When we pin the wrong certificate, connectivity fails.
        val request = Request.Builder().url(server.url("/")).build()
        assertFailsWith<SSLPeerUnverifiedException> {
          client.newCall(request).execute()
        }.also { expected ->
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 142.5K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/internal/ws/WebSocketHttpTest.kt

      fun reconnectingToNonWebSocket() {
        for (i in 0..29) {
          webServer.enqueue(
            MockResponse.Builder()
              .bodyDelay(100, TimeUnit.MILLISECONDS)
              .body("Wrong endpoint")
              .code(401)
              .build(),
          )
        }
        val request =
          Request.Builder()
            .url(webServer.url("/"))
            .build()
    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)
  6. CHANGELOG.md

        of unacknowledged data per stream and no per-connection limit.
    
     *  Fix: Don't close a `Deflater` while we're still using it to compress a web socket message. We
        had a severe bug where web sockets were closed on the wrong thread, which caused
        `NullPointerException` crashes in `Deflater`.
    
     *  Fix: Don't crash after a web socket fails its connection upgrade. We incorrectly released
    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/Http2Connection.kt

       * connection is fine the ping will receive a pong; otherwise it won't.
       *
       * The deadline to respond to this ping attempts to limit the cost of being wrong. If it is too
       * long, streams created while we await the pong will reuse broken connections and inevitably
       * fail. If it is too short, slow connections will be marked as failed and extra TCP and TLS
    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)
  8. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerCertificatesTest.kt

                byteString = okHttpCertificate.signatureValue.byteString.offByOneBit(),
              ),
          )
        assertThat(okHttpCertificateWithBadSignature.checkSignature(root.keyPair.public)).isFalse()
    
        // Wrong public key.
        assertThat(okHttpCertificate.checkSignature(certificate.keyPair.public)).isFalse()
      }
    
      @Test
      fun `EC issuer and signature`() {
        val root =
          HeldCertificate.Builder()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 43.9K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/internal/tls/CertificatePinnerChainValidationTest.kt

       *             -> pinnedIntermediate (trusted by CertificatePinner)
       *                 -> attackerSwitch (not a CA certificate!)
       *                     -> phonyVictim
       * ```
       *
       * But this chain is wrong because the attackerSwitch certificate is being used in a CA role even
       * though it is not a CA certificate. There are pinned certificates in the chain! The correct
       * chain is much shorter because it skips the non-CA certificate.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 23.8K bytes
    - Viewed (0)
  10. okhttp/src/test/resources/okhttp3/internal/publicsuffix/public_suffix_list.dat

    cloud.nospamproxy.com
    
    // Netlify : https://www.netlify.com
    // Submitted by Jessica Parsons <******@****.***>
    netlify.app
    
    // Neustar Inc.
    // Submitted by Trung Tran <Trung******@****.***>
    4u.com
    
    // ngrok : https://ngrok.com/
    // Submitted by Alan Shreve <******@****.***>
    ngrok.io
    
    // Nimbus Hosting Ltd. : https://www.nimbushosting.co.uk/
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 240.3K bytes
    - Viewed (3)
Back to top