logger.debug("Reconnecting to proxy ...");
final ProxyIoSession proxyIoSession = getProxyIoSession();
final ProxyConnector connector = proxyIoSession.getConnector();
connector.connect(new IoSessionInitializer<ConnectFuture>() {
public void initializeSession(final IoSession session,
ConnectFuture future) {
logger.debug("Initializing new session: " + session);
session.setAttribute(ProxyIoSession.PROXY_SESSION,
proxyIoSession);