We changed some tests in #9515 in reaction to SSLPeerUnverifiedException being a cause and not the thrown exception.
This behavior change could impact other parts of OkHttp:
SSLSession.handshake() catches SSLPeerUnverifiedException
RealConnection.isEligible catches SSLPeerUnverifiedException
RetryAndFollowUpInterceptor.isRecoverable() returns false on SSLPeerUnverifiedException
retryTlsHandshake() returns false on SSLPeerUnverifiedException
We changed some tests in #9515 in reaction to
SSLPeerUnverifiedExceptionbeing a cause and not the thrown exception.This behavior change could impact other parts of OkHttp:
SSLSession.handshake()catchesSSLPeerUnverifiedExceptionRealConnection.isEligiblecatchesSSLPeerUnverifiedExceptionRetryAndFollowUpInterceptor.isRecoverable()returns false onSSLPeerUnverifiedExceptionretryTlsHandshake()returns false onSSLPeerUnverifiedException