* Fixed incorrect SslHandler.context() implementation
* Added some FIXMEs
This commit is contained in:
parent
5cfaf7333c
commit
c3a88d0c48
@ -306,6 +306,7 @@ public class SslHandler extends FrameDecoder implements ChannelDownstreamHandler
|
||||
* succeeds or fails.
|
||||
*/
|
||||
public ChannelFuture handshake(Channel channel) throws SSLException {
|
||||
// FIXME do not throw SSLException - return a failed future.
|
||||
ChannelFuture handshakeFuture;
|
||||
synchronized (handshakeLock) {
|
||||
if (handshaking) {
|
||||
@ -327,13 +328,14 @@ public class SslHandler extends FrameDecoder implements ChannelDownstreamHandler
|
||||
* destroys the underlying {@link SSLEngine}.
|
||||
*/
|
||||
public ChannelFuture close(Channel channel) throws SSLException {
|
||||
// FIXME do not throw SSLException - return a failed future.
|
||||
ChannelHandlerContext ctx = context(channel);
|
||||
engine.closeOutbound();
|
||||
return wrapNonAppData(ctx, channel);
|
||||
}
|
||||
|
||||
private ChannelHandlerContext context(Channel channel) {
|
||||
return channel.getPipeline().getContext(getClass());
|
||||
return channel.getPipeline().getContext(this);
|
||||
}
|
||||
|
||||
public void handleDownstream(
|
||||
|
Loading…
Reference in New Issue
Block a user