Skip to content

Commit

Permalink
Fix leak in sslengine
Browse files Browse the repository at this point in the history
  • Loading branch information
siyengar committed Aug 15, 2016
1 parent 0609ec4 commit b594e5b
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ protected Object decode(ChannelHandlerContext ctx, Channel channel, ChannelBuffe

if (looksLikeTLS(buffer)) {
ctx.getPipeline().addAfter(ctx.getName(), sslHandlerName, sslHandler);
} else {
// If the SSL handler is not used, close the ssl engine. This will clean up any native structures
// that the ssl engine holds on to.
sslHandler.getEngine().closeOutbound();
}

ctx.getPipeline().remove(this);
Expand Down

0 comments on commit b594e5b

Please sign in to comment.