- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for retryTlsHandshake (0.1 sec)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RetryTlsHandshake.kt
import javax.net.ssl.SSLException import javax.net.ssl.SSLHandshakeException import javax.net.ssl.SSLPeerUnverifiedException import okio.IOException /** Returns true if a TLS connection should be retried after [e]. */ fun retryTlsHandshake(e: IOException): Boolean = when { // If there was a protocol problem, don't recover. e is ProtocolException -> false // If there was an interruption or timeout (SocketTimeoutException), don't recover.
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 1.7K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/connection/RetryConnectionTest.kt
val exception = IOException("Non-handshake exception") assertThat(retryTlsHandshake(exception)).isFalse() } @Test fun nonRetryableSSLHandshakeException() { val exception = SSLHandshakeException("Certificate handshake exception").apply { initCause(CertificateException()) } assertThat(retryTlsHandshake(exception)).isFalse() } @Test fun retryableSSLHandshakeException() {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 4.3K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/ConnectPlan.kt
success = true return ConnectResult(plan = this) } catch (e: IOException) { user.connectFailed(route, null, e) if (!retryOnConnectionFailure || !retryTlsHandshake(e)) { retryTlsConnection = null } return ConnectResult( plan = this, nextPlan = retryTlsConnection, throwable = e, ) } finally {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 18.6K bytes - Viewed (0)