localAddress, this.m_demuxingIoHandler); cf.join(); try { final IoSession session = cf.getSession(); if (session == null) { m_log.error("Could not create session from " + localAddress
public void fireExceptionCaught(IoSession session, Throwable cause) { // Notify the related ConnectFuture // if the session is created from SocketConnector. ConnectFuture future = (ConnectFuture) session .removeAttribute(CONNECT_FUTURE); if (future == null) { Entry head = this.head; callNextExceptionCaught(head, session, cause); } else { // Please note that this place is not the only place that // calls ConnectFuture.setException(). future.setException(cause); } }
public void sessionOpened(NextFilter nextFilter, IoSession session) throws Exception { try { session.getHandler().sessionOpened(session); } finally { // Notify the related ConnectFuture // if the session is created from SocketConnector. ConnectFuture future = (ConnectFuture) session .removeAttribute(CONNECT_FUTURE); if (future != null) { future.setSession(session); } } }
cf.addListener(futureListener); cf.join(connectTimeout); m_log.debug("Successfully joined..."); try final IoSession session = cf.getSession(); if (session == null)
future.join(); if (!future.isConnected()) { m_log.error("Could not connect to server at: " + remoteAddress); throw new IOException("Could not connect to server at: " session = future.getSession(); } catch (final RuntimeIOException e) {
connectFuture.addListener(futureListener); connectFuture.join();
localAddress, m_ioHandler); LOG.debug("About to join"); cf.join(); LOG.debug("Connected to: {}", stunServer); final IoSession session = cf.getSession(); if (session == null) { throw new IOException("Could not get session with: "
ioFuture.join(6000); final IoSession session; try session = ioFuture.getSession(); if (session == null)
ioFuture.join(10 * 1000); final IoSession session = ioFuture.getSession(); if (session == null || !session.isConnected()) { m_log.error("Could not connect to server: {}",