Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for failHandshake (0.08 sec)

  1. mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt

        this.informationalResponses = builder.informationalResponses
        this.throttleBytesPerPeriod = builder.throttleBytesPerPeriod
        this.throttlePeriodNanos = builder.throttlePeriodNanos
        this.failHandshake = builder.failHandshake
        this.onRequestStart = builder.onRequestStart
        this.doNotReadRequestBody = builder.doNotReadRequestBody
        this.onRequestBody = builder.onRequestBody
        this.onResponseStart = builder.onResponseStart
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/EventListenerTest.kt

        assertThat(connectEnd.protocol).isEqualTo(Protocol.HTTP_1_1)
      }
    
      @Test
      fun failedConnect() {
        enableTlsWithTunnel()
        server.enqueue(
          MockResponse
            .Builder()
            .failHandshake()
            .build(),
        )
        val call =
          client.newCall(
            Request
              .Builder()
              .url(server.url("/"))
              .build(),
          )
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 60.4K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/ConnectionListenerTest.kt

        assertThat(event.route.socketAddress).isEqualTo(expectedAddress)
      }
    
      @Test
      @Throws(UnknownHostException::class)
      fun failedConnect() {
        enableTls()
        server!!.enqueue(MockResponse.Builder().failHandshake().build())
        val call =
          client.newCall(
            Request
              .Builder()
              .url(server!!.url("/"))
              .build(),
          )
        assertFailsWith<IOException> {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  4. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/DeprecationBridge.kt

        SocketPolicy.DISCONNECT_DURING_RESPONSE_BODY -> result.onResponseBody(CloseSocket())
        SocketPolicy.DO_NOT_READ_REQUEST_BODY -> result.doNotReadRequestBody()
        SocketPolicy.FAIL_HANDSHAKE -> result.failHandshake()
        SocketPolicy.SHUTDOWN_INPUT_AT_END ->
          result.onResponseEnd(
            CloseSocket(
              closeSocket = false,
              shutdownInput = true,
            ),
          )
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 03 13:16:34 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  5. okhttp-logging-interceptor/src/test/java/okhttp3/logging/LoggingEventListenerTest.kt

        server.useHttps(handshakeCertificates.sslSocketFactory())
        server.protocols = Arrays.asList(Protocol.HTTP_2, Protocol.HTTP_1_1)
        server.enqueue(
          MockResponse
            .Builder()
            .failHandshake()
            .build(),
        )
        url = server.url("/")
        try {
          client.newCall(request().build()).execute()
          fail<Any>()
        } catch (expected: IOException) {
        }
        logRecorder
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  6. mockwebserver/api/mockwebserver3.api

    	public fun clone ()Lmockwebserver3/MockResponse$Builder;
    	public final fun code (I)Lmockwebserver3/MockResponse$Builder;
    	public final fun doNotReadRequestBody ()Lmockwebserver3/MockResponse$Builder;
    	public final fun failHandshake ()Lmockwebserver3/MockResponse$Builder;
    	public final fun getBody ()Lmockwebserver3/MockResponseBody;
    	public final fun getBodyDelayNanos ()J
    	public final fun getCode ()I
    	public final fun getDoNotReadRequestBody ()Z
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 11.8K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

          if (!processTunnelRequests()) return
    
          val protocol: Protocol
          val socket: MockWebServerSocket
          when {
            sslSocketFactory != null -> {
              if (firstExchangePeek.failHandshake) {
                dispatchBookkeepingRequest(
                  connectionIndex = connectionIndex,
                  exchangeIndex = nextExchangeIndex++,
                  socket = MockWebServerSocket(raw),
                )
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 02 20:36:00 UTC 2025
    - 40.3K bytes
    - Viewed (0)
Back to top