- Sort Score
- Num 10 results
- Language All
Results 1 - 5 of 5 for failHandshake (0.08 seconds)
-
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.newCallWithListener( Request .Builder() .url(server.url("/")) .build(), )
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Feb 03 22:17:59 GMT 2026 - 70.7K bytes - Click Count (0) -
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,
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Mar 15 09:02:18 GMT 2026 - 146.5K bytes - Click Count (0) -
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 }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 133.3K bytes - Click Count (0) -
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) -
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)