Hi,
I am new to Mina, and I have a question:
I have written an HttpServer with decoder and encoder to received
messages. I have some data I need to read when message arrives, and
send it back to the client. I have a thread that reads the data and
writes it into the output stream.
This works ok, but I do not know how to handle session closure once I
finish writing.
How do I properly close the connection after all data has been written
without interferring with the background task's action on the one hand
(e.g. session.close()), and not hanging too long on the other hand?

Thanks,

Reply via email to