> The best way is: > > session.write(something).addListener(IoFutureListener.CLOSE);
Thanks Trustin, One more question... I store the IoSession in a custom Object and when data is available I call session.write( ) from another thread to send the data out. Can I use IoSession outside of IoHandler or it's thread? I should be aware of some synchronization issues, is IoSession thread safe? Bogdan
