Issue #1912 refixed onOpen call for SSL leak

This commit is contained in:
Greg Wilkins 2017-10-26 09:08:07 +11:00
parent 76e744979b
commit 2bd39c897d
1 changed files with 2 additions and 1 deletions

View File

@ -202,10 +202,11 @@ public class ManagedSelector extends ContainerLifeCycle implements Dumpable
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())