321322323324325326327328329330331
if (timeoutFuture != null) { timeoutFuture.cancel(false); } engine.beginHandshake(); handshakePromises.add(promise); flush0(ctx, ctx.newPromise(), true); } catch (Exception e) { if (promise.tryFailure(e)) { ctx.fireExceptionCaught(e); ctx.close(); }