Skip to content

Commit

Permalink
Fix for REM3-250. Close SSLConnection
Browse files Browse the repository at this point in the history
  • Loading branch information
jfdenise committed Dec 1, 2016
1 parent aad680f commit 61b0b9e
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -264,6 +264,8 @@ public void handleDone(final StreamConnection streamConnection, final FutureResu
return;
}
final JsseSslConnection sslConnection = new JsseSslConnection(streamConnection, engine);
// Required in order for the SSLConnection to be properly closed.
streamConnection.getCloseSetter().set(channel -> IoUtils.safeClose(sslConnection));
if (sslRequired || ! connectOptions.get(Options.SSL_STARTTLS, false)) try {
sslConnection.startHandshake();
} catch (IOException e) {
Expand Down

0 comments on commit 61b0b9e

Please sign in to comment.