mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8259582: Backout JDK-8237578 until all affected tests have been fixed
Reviewed-by: xuelei
This commit is contained in:
parent
8dfc77bfa6
commit
e9929e2b5a
5 changed files with 7 additions and 182 deletions
|
@ -447,8 +447,6 @@ public final class SSLSocketImpl
|
|||
throw conContext.fatal(Alert.HANDSHAKE_FAILURE,
|
||||
"Couldn't kickstart handshaking", iioe);
|
||||
}
|
||||
} catch (SocketException se) {
|
||||
handleException(se);
|
||||
} catch (IOException ioe) {
|
||||
throw conContext.fatal(Alert.HANDSHAKE_FAILURE,
|
||||
"Couldn't kickstart handshaking", ioe);
|
||||
|
@ -1413,9 +1411,6 @@ public final class SSLSocketImpl
|
|||
} catch (InterruptedIOException iioe) {
|
||||
// don't change exception in case of timeouts or interrupts
|
||||
throw iioe;
|
||||
} catch (SocketException se) {
|
||||
// don't change exception in case of SocketException
|
||||
throw se;
|
||||
} catch (IOException ioe) {
|
||||
throw new SSLException("readHandshakeRecord", ioe);
|
||||
}
|
||||
|
@ -1481,9 +1476,6 @@ public final class SSLSocketImpl
|
|||
} catch (InterruptedIOException iioe) {
|
||||
// don't change exception in case of timeouts or interrupts
|
||||
throw iioe;
|
||||
} catch (SocketException se) {
|
||||
// don't change exception in case of SocketException
|
||||
throw se;
|
||||
} catch (IOException ioe) {
|
||||
if (!(ioe instanceof SSLException)) {
|
||||
throw new SSLException("readApplicationRecord", ioe);
|
||||
|
@ -1695,16 +1687,6 @@ public final class SSLSocketImpl
|
|||
}
|
||||
}
|
||||
|
||||
if (cause instanceof SocketException) {
|
||||
try {
|
||||
conContext.fatal(alert, cause);
|
||||
} catch (Exception e) {
|
||||
// Just delivering the fatal alert, re-throw the socket exception instead.
|
||||
}
|
||||
|
||||
throw (SocketException)cause;
|
||||
}
|
||||
|
||||
throw conContext.fatal(alert, cause);
|
||||
}
|
||||
|
||||
|
|
|
@ -28,7 +28,6 @@ package sun.security.ssl;
|
|||
import java.io.EOFException;
|
||||
import java.io.IOException;
|
||||
import java.io.InterruptedIOException;
|
||||
import java.net.SocketException;
|
||||
import java.nio.ByteBuffer;
|
||||
import javax.crypto.AEADBadTagException;
|
||||
import javax.crypto.BadPaddingException;
|
||||
|
@ -141,9 +140,6 @@ interface SSLTransport {
|
|||
} catch (InterruptedIOException iioe) {
|
||||
// don't close the Socket in case of timeouts or interrupts.
|
||||
throw iioe;
|
||||
} catch (SocketException se) {
|
||||
// don't change exception in case of SocketException
|
||||
throw se;
|
||||
} catch (IOException ioe) {
|
||||
throw context.fatal(Alert.UNEXPECTED_MESSAGE, ioe);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue