Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for FAILURE (0.15 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnection.kt

        client: OkHttpClient,
        failedRoute: Route,
        failure: IOException,
      ) {
        // Tell the proxy selector when we fail to connect on a fresh connection.
        if (failedRoute.proxy.type() != Proxy.Type.DIRECT) {
          val address = failedRoute.address
          address.proxySelector.connectFailed(
            address.url.toUri(),
            failedRoute.proxy.address(),
            failure,
          )
        }
    
    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)
  2. docs/changelogs/changelog_4x.md

    ## Version 4.12.0
    
    _2023-10-16_
    
     *  Fix: Don't hang taking headers for HTTP 103 responses.
    
     *  Fix: Recover gracefully when a cache entry's certificate is corrupted.
    
     *  Fix: Fail permanently when there's a failure loading the bundled public suffix database.
        This is the dataset that powers `HttpUrl.topPrivateDomain()`.
    
     *  Fix: Immediately update the connection's flow control window instead of waiting for the
    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)
  3. okhttp/src/main/kotlin/okhttp3/internal/connection/RealCall.kt

              responseCallback.onResponse(this@RealCall, response)
            } catch (e: IOException) {
              if (signalledCallback) {
                // Do not signal the callback twice!
                Platform.get().log("Callback failure for ${toLoggableString()}", Platform.INFO, e)
              } else {
                responseCallback.onFailure(this@RealCall, e)
              }
            } catch (t: Throwable) {
              cancel()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 17.9K bytes
    - Viewed (2)
  4. okhttp/src/main/kotlin/okhttp3/internal/connection/ConnectPlan.kt

                ),
            )
          }
          else -> {
            val failure =
              ProtocolException(
                "Too many tunnel connections attempted: $MAX_TUNNEL_ATTEMPTS",
              )
            user.connectFailed(route, null, failure)
            return ConnectResult(plan = this, throwable = failure)
          }
        }
      }
    
      @Throws(IOException::class)
      private fun connectTls(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/CertificatePinner.kt

     *     .build();
     * client.newCall(request).execute();
     * ```
     *
     * As expected, this fails with a certificate pinning exception:
     *
     * ```java
     * javax.net.ssl.SSLPeerUnverifiedException: Certificate pinning failure!
     * Peer certificate chain:
     *     sha256/afwiKY3RxoMmLkuRW1l7QsPZTJPwDS2pdDROQjXw8ig=: CN=publicobject.com, OU=PositiveSSL
     *     sha256/klO23nT2ehFDXCfx3eHTDRESMz3asj1muO+4aIdjiuY=: CN=COMODO RSA Secure Server CA
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 14.2K bytes
    - Viewed (1)
  6. okhttp/src/test/java/okhttp3/FastFallbackTest.kt

        val call = client.newCall(Request(url))
        val response = call.execute()
        assertThat(response.body.string()).isEqualTo("hello from IPv6")
    
        // In the process we made two connection attempts including one failure.
        assertThat(listener.recordedEventTypes().filter { it == "ConnectStart" }).hasSize(1)
        assertThat(listener.recordedEventTypes().filter { it == "ConnectEnd" }).hasSize(1)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.3K bytes
    - Viewed (0)
  7. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsOverHttpsTest.kt

          .containsExactlyInAnyOrder(
            "/lookup?ct&dns=AAABAAABAAAAAAAABmdvb2dsZQNjb20AAAEAAQ",
            "/lookup?ct&dns=AAABAAABAAAAAAAABmdvb2dsZQNjb20AABwAAQ",
          )
      }
    
      @Test
      fun failure() {
        server.enqueue(
          dnsResponse(
            "0000818300010000000100000e7364666c6b686673646c6b6a64660265650000010001c01b00060001000" +
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 11K bytes
    - Viewed (0)
  8. okhttp-testing-support/src/main/kotlin/okhttp3/OkHttpClientTestRule.kt

        val failure = context.executionException.orElseGet { null }
    
        if (uncaughtException != null) {
          throw failure + AssertionError("uncaught exception thrown during test", uncaughtException)
        }
    
        if (context.isFlaky()) {
          logEvents()
        }
    
        LogManager.getLogManager().reset()
    
        var result: Throwable? = failure
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/http/RetryAndFollowUpInterceptor.kt

          }
        }
      }
    
      /**
       * Report and attempt to recover from a failure to communicate with a server. Returns true if
       * `e` is recoverable, or false if the failure is permanent. Requests with a body can only
       * be recovered if the body is buffered or if the failure occurred before the request has been
       * sent.
       */
      private fun recover(
        e: IOException,
    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)
  10. okhttp/src/test/java/okhttp3/CallHandshakeTest.kt

        )
      }
    
      @Test
      fun clientOrderApplied() {
    //    // Flaky in CI
    //    // CallHandshakeTest[jvm] > defaultOrderMaintained()[jvm] FAILED
    //    //  org.bouncycastle.tls.TlsFatalAlertReceived: handshake_failure(40)
    //    platform.assumeNotBouncyCastle()
    
        val client = makeClient()
        makeRequest(client)
    
        // As of OkHttp 5 we now apply the ordering from the OkHttpClient, which defaults to MODERN_TLS
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 11.2K bytes
    - Viewed (0)
Back to top