mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bogdan Ciprian Pistol" <bogdancipr...@gmail.com>
Subject Re: where should I close the session?
Date Tue, 04 Nov 2008 10:46:02 GMT
Hi Erix,

You can do like this:

ioSession.write(someMessage).addListener(IoFutureListener.CLOSE);

Bogdan

On Tue, Nov 4, 2008 at 10:38 AM, Erix Yao <erix.subscribe@gmail.com> wrote:
> While using mina, I didn't know where to call session.close() after I write
> the message to the session.
> Shall I just set the idletime and leave the session close itself?
>

Mime
View raw message