Hello,
My app is to reuse an NioSocketConnector.
A snippet from the method that is to be called repeatedly:
...
IoSessionInitializer ioi = new IoSessionInitializer<ConnectFuture>() {
public void initializeSession(IoSession session, ConnectFuture future) {
session.setAttribute("attr", attr);
}
};
connector.connect(host, ioi);
...
What I see is that although this connector.connect is called, a
new session is initialized repeatedly, only the first session
writes data out (e.g. sessionOpened called in the handler). This session
is closed after then succesfully.
Why the other sessions are not created and work as expected?
Are there more complex examples available than ones in the user guide?
Thanks!
Zsolt