Issue #464 - Improve reporting of SSLHandshakeException.

Making sure that the raw EndPoint is closed if the decrypted EndPoint
output is shutdown when the input is also shutdown.
This commit is contained in:
Simone Bordet 2016-05-25 00:52:10 +02:00
parent 031bc0fed9
commit 4762a6eaa3
1 changed files with 3 additions and 1 deletions

View File

@ -926,7 +926,9 @@ public class SslConnection extends AbstractConnection
_sslEngine.closeOutbound();
// Send the TLS close message.
flush(BufferUtil.EMPTY_BUFFER);
if (!ishut)
if (ishut)
getEndPoint().close();
else
ensureFillInterested();
}
}