Sending SSL close alert from both shutdownOutput() and close().
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@3217 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
parent
c6665c228a
commit
4ba3046a8b
|
@ -17,7 +17,6 @@ import java.io.IOException;
|
|||
import java.nio.ByteBuffer;
|
||||
import java.nio.channels.SelectionKey;
|
||||
import java.nio.channels.SocketChannel;
|
||||
|
||||
import javax.net.ssl.SSLEngine;
|
||||
import javax.net.ssl.SSLEngineResult;
|
||||
import javax.net.ssl.SSLEngineResult.HandshakeStatus;
|
||||
|
@ -198,6 +197,12 @@ public class SslSelectChannelEndPoint extends SelectChannelEndPoint
|
|||
/* ------------------------------------------------------------ */
|
||||
@Override
|
||||
public void shutdownOutput() throws IOException
|
||||
{
|
||||
sslClose();
|
||||
super.shutdownOutput();
|
||||
}
|
||||
|
||||
protected void sslClose() throws IOException
|
||||
{
|
||||
if (_closing)
|
||||
return;
|
||||
|
@ -310,6 +315,7 @@ public class SslSelectChannelEndPoint extends SelectChannelEndPoint
|
|||
@Override
|
||||
public void close() throws IOException
|
||||
{
|
||||
sslClose();
|
||||
super.close();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue