// and reclaim the local address when the connection is closed.
localSession.getCloseFuture().addListener(LOCAL_ADDRESS_RECLAIMER);
// initialize connector session
try {
IoFilterChain filterChain = localSession.getFilterChain();
this.getFilterChainBuilder().buildFilterChain(filterChain);
// The following sentences don't throw any exceptions.
getListeners().fireSessionCreated(localSession);
idleChecker.addSession(localSession);
} catch (Throwable t) {
future.setException(t);
return future;
}
// initialize acceptor session
VmPipeSession remoteSession = localSession.getRemoteSession();
((VmPipeAcceptor) remoteSession.getService()).doFinishSessionInitialization(remoteSession, null);
try {
IoFilterChain filterChain = remoteSession.getFilterChain();
entry.getAcceptor().getFilterChainBuilder().buildFilterChain(
filterChain);
// The following sentences don't throw any exceptions.
entry.getListeners().fireSessionCreated(remoteSession);