419899 Do not wrap SSL Exception as EoFException
This commit is contained in:
parent
33e2055468
commit
c44537fca8
|
@ -116,8 +116,8 @@ public class HostnameVerificationTest
|
|||
// Therefore this test may catch a SSLHandshakeException, or a ClosedChannelException.
|
||||
// If it is the former, we verify that its cause is a CertificateException.
|
||||
|
||||
// ExecutionException wraps an EofException that wraps the SSLHandshakeException
|
||||
Throwable cause = x.getCause().getCause();
|
||||
// ExecutionException wraps an SSLHandshakeException
|
||||
Throwable cause = x.getCause();
|
||||
if (cause instanceof SSLHandshakeException)
|
||||
assertThat(cause.getCause().getCause(), instanceOf(CertificateException.class));
|
||||
else
|
||||
|
|
|
@ -632,11 +632,6 @@ public class SslConnection extends AbstractConnection
|
|||
}
|
||||
}
|
||||
}
|
||||
catch (SSLException e)
|
||||
{
|
||||
getEndPoint().close();
|
||||
throw new EofException(e);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
getEndPoint().close();
|
||||
|
|
Loading…
Reference in New Issue