mina-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kúti Zsolt <kuti.zs...@prolan.hu>
Subject Re: How call of NioSocketConnector.connect multiple times is expected to work?
Date Fri, 02 Apr 2010 14:00:09 GMT
Fri, 2 Apr 2010 15:39:41 +0200 -n
Kúti Zsolt <kuti.zsolt@prolan.hu> írta:

> 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?

Ignore this please, my mistake. Sorry for the noise.

Zsolt

Mime
View raw message