In my test, when my clear the sessionClosed method, if I restart the server
side,  I cann't receive any data, but
if I write like this, I can receive data, but sessionClosed method is still
running, that's a expected??
2009/7/30 Emmanuel Lecharny <[email protected]>

> vagrant wrote:
> > Hi, I wirte a Long connection client, it's sample code as:
> >  public void startClient() throws Exception {
> >   NioSocketConnector socketConnector = new NioSocketConnector();
> >   socketConnector.setHandler(.......);
> >
> .........................................................................
> >   ConnectFuture future = socketConnector.connect(new InetSocketAddress(ip
> ,
> > port));
> >   future.awaitUninterruptibly();
> >  }
> >
> >  I implement IoHandler interface,  in sessionClosed method, I try to
> > reconnect the server side,  it works, but still print "reconnect"
> >  characters,
> >
> Looking at your code, this is expected... It's not because the session
> as been connected that the sessionClosed() method will not execute the
> rest of its code...
>
> --
> --
> cordialement, regards,
> Emmanuel Lécharny
> www.iktek.com
> directory.apache.org
>
>
>

Reply via email to