Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 5 of 5 for failHandshake (0.06 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  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
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Jun 20 11:46:46 GMT 2025
    - 17.8K bytes
    - Click Count (0)
  2. 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> {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Nov 04 18:33:48 GMT 2025
    - 9.7K bytes
    - Click Count (0)
  3. 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
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Jun 20 11:46:46 GMT 2025
    - 10.2K bytes
    - Click Count (0)
  4. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/DeprecationBridge.kt

          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,
            ),
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 4.3K bytes
    - Click Count (1)
  5. 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),
                )
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 40.3K bytes
    - Click Count (0)
Back to Top