Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for failHandshake (0.41 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt

        server.enqueue(MockResponse.Builder().failHandshake().build())
        server.enqueue(MockResponse(body = "response that will never be received"))
        val response = executeSynchronously("/")
        response.assertFailure(
          // JDK 11 response to the FAIL_HANDSHAKE:
          SSLException::class.java,
          // RI response to the FAIL_HANDSHAKE:
          SSLProtocolException::class.java,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 146.6K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/URLConnectionTest.kt

          when (expected) {
            is SSLProtocolException -> {
              // RI response to the FAIL_HANDSHAKE
            }
            is SSLHandshakeException -> {
              // Android's response to the FAIL_HANDSHAKE
            }
            is SSLException -> {
              // JDK 1.9 response to the FAIL_HANDSHAKE
              // javax.net.ssl.SSLException: Unexpected handshake message: client_hello
            }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jun 21 20:36:35 UTC 2025
    - 133.2K bytes
    - Viewed (0)
Back to top