8216326: SSLSocket stream close() does not close the associated socket

Reviewed-by: jnimeh
This commit is contained in:
Xue-Lei Andrew Fan 2019-04-16 16:59:09 -07:00
parent 781fb29580
commit eb59ebb177
3 changed files with 166 additions and 2 deletions

View file

@ -980,7 +980,7 @@ public final class SSLSocketImpl
}
try {
shutdownInput(false);
SSLSocketImpl.this.close();
} catch (IOException ioe) {
// ignore the exception
if (SSLLogger.isOn && SSLLogger.isOn("ssl")) {
@ -1146,7 +1146,7 @@ public final class SSLSocketImpl
}
try {
shutdownOutput();
SSLSocketImpl.this.close();
} catch (IOException ioe) {
// ignore the exception
if (SSLLogger.isOn && SSLLogger.isOn("ssl")) {