Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for UnknownServiceException (0.23 sec)

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

          if (ConnectionSpec.CLEARTEXT !in route.address.connectionSpecs) {
            throw UnknownServiceException("CLEARTEXT communication not enabled for client")
          }
    
          val host = route.address.url.host
          if (!Platform.get().isCleartextTrafficPermitted(host)) {
            throw UnknownServiceException(
              "CLEARTEXT communication to $host not permitted by network security policy",
            )
          }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 12K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/connection/FastFallbackExchangeFinderTest.kt

      }
    
      @Test
      fun routePlannerPlanThrowsOnOnlyPlan() {
        val plan0 = routePlanner.addPlan()
        plan0.planningThrowable = UnknownServiceException("boom!")
    
        taskRunner.newQueue().execute("connect") {
          assertFailsWith<UnknownServiceException> {
            finder.find()
          }.also { expected ->
            assertThat(expected).hasMessage("boom!")
          }
        }
    
        taskFaker.runTasks()
    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)
  3. okhttp/src/main/kotlin/okhttp3/internal/connection/ConnectPlan.kt

    import java.io.IOException
    import java.net.ConnectException
    import java.net.HttpURLConnection
    import java.net.ProtocolException
    import java.net.Proxy
    import java.net.Socket
    import java.net.UnknownServiceException
    import java.security.cert.X509Certificate
    import java.util.concurrent.TimeUnit
    import javax.net.ssl.SSLPeerUnverifiedException
    import javax.net.ssl.SSLSocket
    import kotlin.concurrent.withLock
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  4. android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt

        val request = Request.Builder().url("http://squareup.com/robots.txt").build()
    
        try {
          client.newCall(request).execute()
          fail<Any>("expected cleartext blocking")
        } catch (_: java.net.UnknownServiceException) {
        }
      }
    
      data class HowsMySslResults(
        val unknown_cipher_suite_supported: Boolean,
        val beast_vuln: Boolean,
        val session_ticket_supported: Boolean,
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 27K bytes
    - Viewed (1)
  5. okhttp/src/test/java/okhttp3/CallTest.kt

    import java.net.HttpURLConnection
    import java.net.InetAddress
    import java.net.ProtocolException
    import java.net.Proxy
    import java.net.SocketTimeoutException
    import java.net.UnknownHostException
    import java.net.UnknownServiceException
    import java.time.Duration
    import java.util.Arrays
    import java.util.concurrent.BlockingQueue
    import java.util.concurrent.CountDownLatch
    import java.util.concurrent.Executors
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 142.5K bytes
    - Viewed (0)
  6. docs/changelogs/changelog_2x.md

        when both are applicable.
     *  Fix: Fail early when a port is out of range.
     *  Fix: Offer `Content-Length` headers for multipart request bodies.
     *  Fix: Throw `UnknownServiceException` if a cleartext connection is attempted
        when explicitly forbidden.
     *  Fix: Throw a `SSLPeerUnverifiedException` when host verification fails.
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 26.6K bytes
    - Viewed (0)
Back to top