Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 38 for failed (0.21 sec)

  1. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt

        }.also { expected ->
          assertThat(expected).hasMessage("Failed to parse UTCTime 191216#30210Z")
        }
      }
    
      @Test fun `cannot decode generalized time with offset`() {
        assertFailsWith<ProtocolException> {
          Adapters.GENERALIZED_TIME.fromDer("181332303139313231353139303231302d30383030".decodeHex())
        }.also { expected ->
          assertThat(expected).hasMessage("Failed to parse GeneralizedTime 20191215190210-0800")
        }
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 31.7K bytes
    - Viewed (0)
  2. okhttp-tls/src/test/java/okhttp3/tls/HeldCertificateTest.kt

            |lu/GJQZoU9lDrCPeUcQ28tzOWw==
            |-----END PRIVATE KEY-----
            |
            """.trimMargin(),
          )
          fail<Any>()
        } catch (expected: IllegalArgumentException) {
          if (!platform.isConscrypt()) {
            assertThat(expected.message).isEqualTo("failed to decode certificate")
          }
        }
        try {
          decode(
            """
            |-----BEGIN CERTIFICATE-----
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 22.5K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/connection/FastFallbackExchangeFinderTest.kt

        )
    
        taskFaker.advanceUntil(510.ms)
        assertEvents(
          "plan 0 TCP connect failed",
        )
    
        taskFaker.advanceUntil(520.ms)
        assertEvents(
          "plan 1 TCP connect failed",
        )
    
        taskFaker.advanceUntil(530.ms)
        assertEvents(
          "plan 2 TCP connect failed",
          "take plan 3",
          "plan 3 TCP connecting...",
        )
    
        taskFaker.advanceUntil(780.ms)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 24 04:40:49 GMT 2024
    - 20.9K bytes
    - Viewed (0)
  4. okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/HttpLoggingInterceptor.kt

            }
          }
    
          val startNs = System.nanoTime()
          val response: Response
          try {
            response = chain.proceed(request)
          } catch (e: Exception) {
            logger.log("<-- HTTP FAILED: $e")
            throw e
          }
    
          val tookMs = TimeUnit.NANOSECONDS.toMillis(System.nanoTime() - startNs)
    
          val responseBody = response.body!!
          val contentLength = responseBody.contentLength()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 09:14:38 GMT 2024
    - 11.2K bytes
    - Viewed (1)
  5. okhttp/src/main/kotlin/okhttp3/internal/connection/RealCall.kt

        connection.calls.add(CallReference(this, callStackTrace))
      }
    
      /**
       * Releases resources held with the request or response of [exchange]. This should be called when
       * the request completes normally or when it fails due to an exception, in which case [e] should
       * be non-null.
       *
       * If the exchange was canceled or timed out, this will wrap [e] in an exception that provides
    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)
  6. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnection.kt

    /*
     *  Licensed to the Apache Software Foundation (ASF) under one or more
     *  contributor license agreements.  See the NOTICE file distributed with
     *  this work for additional information regarding copyright ownership.
     *  The ASF licenses this file to You under the Apache License, Version 2.0
     *  (the "License"); you may not use this file except in compliance with
     *  the License.  You may obtain a copy of the License at
     *
    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)
  7. docs/recipes.md

            }
          }
        ```
    
    ### Posting a File ([.kt][PostFileKotlin], [.java][PostFileJava])
    
    It's easy to use a file as a request body.
    
    === ":material-language-kotlin: Kotlin"
        ```kotlin
          private val client = OkHttpClient()
    
          fun run() {
            val file = File("README.md")
    
            val request = Request.Builder()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Feb 18 08:52:22 GMT 2022
    - 40.2K bytes
    - Viewed (1)
  8. docs/changelogs/changelog_4x.md

        internal `DiskLruCache` assumes an inode-like file system, where it's fine to delete files that
        are currently being read or written. On Windows the file system forbids this so we must be more
        careful when deleting and renaming files.
    
     *  Fix: Don't crash on Java 8u252 which introduces an API previously found only on Java 9 and
    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/test/java/okhttp3/internal/connection/RouteSelectorTest.kt

        assertThat(regularRoutes.size).isEqualTo(numberOfAddresses)
        // Add first regular route as failed.
        routeDatabase.failed(regularRoutes[0])
        // Reset selector
        routeSelector = newRouteSelector(address)
    
        // The first selection prioritizes the non-failed routes.
        val selection2 = routeSelector.next()
        assertThat(selection2.next()).isEqualTo(regularRoutes[1])
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Mar 06 17:33:38 GMT 2024
    - 20.8K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/ws/RealWebSocket.kt

       * thread.
       */
      fun finishReader() {
        val failed: Boolean
        val code: Int
        val reason: String?
        var streamsToClose: Streams?
        var readerToClose: WebSocketReader?
        synchronized(this) {
          failed = this.failed
          code = receivedCloseCode
          reason = receivedCloseReason
    
          readerToClose = reader
          reader = null
    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)
Back to top