private void setHandshakeSuccess ( ) { handshakePromise . trySuccess ( ctx . channel ( ) ) ; if ( logger . isDebugEnabled ( ) ) { logger . debug ( "{} HANDSHAKEN: {}" , ctx . channel ( ) , engine . getSession ( ) . getCipherSuite ( ) ) ; } ctx . fireUserEventTriggered ( SslHandshakeCompletionEvent . SUCCESS ) ; if ( readDuringHandshake && ! ctx . channel ( ) . config ( ) . isAutoRead ( ) ) { readDuringHandshake = false ; ctx . read ( ) ; } }
Notify all the handshake futures about the successfully handshake