use of org.webpieces.ssl.api.AsyncSSLEngineException in project webpieces by deanhiller.
the class AsyncSSLEngine2Impl method beginHandshake.
@Override
public XFuture<Void> beginHandshake() {
mem.compareSet(ConnectionState.NOT_STARTED, ConnectionState.CONNECTING);
SSLEngine sslEngine = mem.getEngine();
if (log.isTraceEnabled())
log.trace(mem + "start handshake");
try {
sslEngine.beginHandshake();
} catch (SSLException e) {
throw new AsyncSSLEngineException(e);
}
return sendHandshakeMessage();
}
use of org.webpieces.ssl.api.AsyncSSLEngineException in project webpieces by deanhiller.
the class AsyncSSLEngine3Impl method feedPlainPacket.
@Override
public XFuture<Void> feedPlainPacket(ByteBuffer buffer) {
SSLEngine engine = mem.getEngine();
circularBuffer.add(new Action(Thread.currentThread().getName(), ActionEnum.FEED_PLAIN_START, engine));
try {
metrics.recordPlainBytesFromClient(buffer.remaining());
return feedPlainPacketImpl(buffer);
} catch (SSLException e) {
throw new AsyncSSLEngineException(e);
} finally {
circularBuffer.add(new Action(Thread.currentThread().getName(), ActionEnum.FEED_PLAIN_END, engine));
}
}
Aggregations