SSLContext sslContext = Link.initSSLContext(false);
sslEngine = sslContext.createSSLEngine();
sslEngine.setUseClientMode(false);
sslEngine.setNeedClientAuth(false);
Link.doHandshake(socketChannel, sslEngine, false);
<BUG>s_logger.info("SSL: Handshake done");</BUG>
} catch (Exception e) {
<BUG>throw new IOException("SSL: Fail to init SSL! " + e);
}</BUG>
socketChannel.configureBlocking(false);

SSLContext sslContext = Link.initSSLContext(false);
sslEngine = sslContext.createSSLEngine();
sslEngine.setUseClientMode(false);
sslEngine.setNeedClientAuth(false);
Link.doHandshake(socketChannel, sslEngine, false);
} catch (Exception e) {
logDebug(e, key, 0);
terminate(key);
return;
}
if (s_logger.isTraceEnabled()) {
s_logger.trace("SSL: Handshake done");
}
socketChannel.configureBlocking(false);
