private boolean handshake(IoSession session) {
ClientHandshake clientHandshake = (ClientHandshake) session.getAttribute(ClientHandshake.HANDSHAKE);
clientHandshake.await(handshakeResponseTimeout);
session.removeAttribute(ClientHandshake.HANDSHAKE); // not needed anymore
return clientHandshake.successful();
}
// ############################################
private class ReconnectTask implements Runnable {