Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 54 for causal (0.23 sec)

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

        // ConnectionSpec: we assume it is unreachable.
        e is InterruptedIOException -> false
    
        // If the problem was a CertificateException from the X509TrustManager, do not retry.
        e is SSLHandshakeException && e.cause is CertificateException -> false
    
        // e.g. a certificate pinning error.
        e is SSLPeerUnverifiedException -> false
    
        // Retry for all other SSL failures.
        e is SSLException -> true
    
        else -> false
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Jan 07 16:05:34 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Stream.kt

          closeLater(ErrorCode.CANCEL)
          connection.sendDegradedPingLater()
        }
    
        override fun newTimeoutException(cause: IOException?): IOException {
          return SocketTimeoutException("timeout").apply {
            if (cause != null) {
              initCause(cause)
            }
          }
        }
    
        @Throws(IOException::class)
        fun exitAndThrowIfTimedOut() {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 23.2K bytes
    - Viewed (1)
  3. docs/features/https.md

    depends on the JVM or Android version, OkHttp version, and web server configuration. If there is no
    common cipher suite and TLS version, your call will fail like this:
    
    ```
    Caused by: javax.net.ssl.SSLProtocolException: SSL handshake aborted: ssl=0x7f2719a89e80:
        Failure in SSL library, usually a protocol error
            error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Dec 24 00:16:30 GMT 2022
    - 10.5K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt

        private var done: Boolean = false
    
        /**
         * Prevents this editor from completing normally. This is necessary either when the edit causes
         * an I/O error, or if the target entry is evicted while this editor is active. In either case
         * we delete the editor's created files and prevent new files from being created. Note that once
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 34.7K bytes
    - Viewed (0)
  5. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

        if (shutdown) return
        shutdown = true
    
        if (!started) return // Nothing to shut down.
        val serverSocket = this.serverSocket ?: return // If this is null, start() must have failed.
    
        // Cause acceptConnections() to break out.
        serverSocket.close()
    
        // Await shutdown.
        for (queue in taskRunner.activeQueues()) {
          if (!queue.idleLatch().await(5, TimeUnit.SECONDS)) {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 37.4K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/CacheTest.kt

      }
    
      @Test
      fun responseCachingAndInputStreamSkipWithNoLengthHeaders() {
        testResponseCaching(TransferKind.END_OF_STREAM)
      }
    
      /**
       * Skipping bytes in the input stream caused ResponseCache corruption.
       * http://code.google.com/p/android/issues/detail?id=8175
       */
      private fun testResponseCaching(transferKind: TransferKind) {
        val mockResponse =
          MockResponse.Builder()
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 108.6K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/internal/ws/MessageDeflaterInflaterTest.kt

        val inflater = MessageInflater(false)
    
        inflater.close()
    
        assertFailsWith<Exception> {
          inflater.inflate("f240e30300".decodeHex())
        }
      }
    
      /**
       * Test for an [EOFException] caused by mishandling of fragmented buffers in web socket
       * compression. https://github.com/square/okhttp/issues/5965
       */
      @Test fun `inflate golden value in buffer that has been fragmented`() {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Jan 06 05:31:00 GMT 2024
    - 5K bytes
    - Viewed (0)
  8. LICENSE.txt

          other entities that control, are controlled by, or are under common
          control with that entity. For the purposes of this definition,
          "control" means (i) the power, direct or indirect, to cause the
          direction or management of such entity, whether by contract or
          otherwise, or (ii) ownership of fifty percent (50%) or more of the
          outstanding shares, or (iii) beneficial ownership of such entity.
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jul 23 14:02:28 GMT 2012
    - 11.1K bytes
    - Viewed (0)
  9. docs/changelogs/upgrading_to_okhttp_4.md

    #### Internal API changes
    
    The `okhttp3.internal` package is not a published API and we change it frequently without warning.
    Depending on code in this package is bad and will cause you problems with any upgrade! But the 4.x
    will be particularly painful to naughty developers that import from this package! We changed a lot
    to take advantage of sweet Kotlin features.
    
    #### Credentials.basic()
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Feb 06 16:58:16 GMT 2022
    - 10.9K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/internal/connection/FastFallbackExchangeFinderTest.kt

        )
    
        taskFaker.advanceUntil(800.ms)
        assertEvents(
          "plan 3 TCP connect canceled",
        )
    
        taskFaker.assertNoMoreTasks()
      }
    
      /**
       * This test causes two connections to become available simultaneously, one from a TCP connect and
       * one from the pool. We must take the pooled connection because by taking it from the pool, we've
       * fully acquired it.
       *
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 24 04:40:49 GMT 2024
    - 20.9K bytes
    - Viewed (0)
Back to top