Le 3/13/13 3:38 PM, antares a écrit :
> Hi,
> i write a client with Apache Mina but after a couple of seconds of
> inactivity i receive a session.close !
> I tried to set connectionTimeMillis and idle but nothing.
> Also i put a log on override function sessionIdle and exceptionCaught but i
> dont see any log in there
> Simply i receive a session close
>
>         connector = new NioSocketConnector();
>         connector.setConnectTimeoutMillis(60*60*24*1000L);
>         log.debug("[start] connector.getConnectTimeoutMillis()=" +
> connector.getConnectTimeoutMillis());
>         connector.getFilterChain().addLast("codec", new
> ProtocolCodecFilter(new FlashCrossdomainCodec()));
>         connector.setHandler(new Handler(this));
>         log.info("Connecting to " + host + ":" + port);
>         cf = connector.connect(new InetSocketAddress(host, port));
>
> where i make mistake ?
>
> Thanks for your help
>
Are you sure the server is not closing the connection ? If so, you'll
receive a sessionClose event...


-- 
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com 

Reply via email to