Skip to content

Commit

Permalink
Issue #1912 refixed onOpen call for SSL leak
Browse files Browse the repository at this point in the history
  • Loading branch information
gregw committed Oct 25, 2017
1 parent 76e7449 commit 2bd39c8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,11 @@ private void closeNoExceptions(Closeable closeable)
private EndPoint createEndPoint(SelectableChannel channel, SelectionKey selectionKey) throws IOException
{
EndPoint endPoint = _selectorManager.newEndPoint(channel, this, selectionKey);
endPoint.onOpen();
Connection connection = _selectorManager.newConnection(channel, endPoint, selectionKey.attachment());
endPoint.setConnection(connection);
selectionKey.attach(endPoint);

endPoint.onOpen();
_selectorManager.endPointOpened(endPoint);
_selectorManager.connectionOpened(connection);
if (LOG.isDebugEnabled())
Expand Down

0 comments on commit 2bd39c8

Please sign in to comment.