If client machine shutdown abnormally, will MINA detect

2007-12-13 Thread johnnyv_cn
-- View this message in context: http://www.nabble.com/If-client-machine-shutdown-abnormally%2C-will-MINA-detect-tp14330917s16868p14330917.html Sent from the Apache MINA Support Forum mailing list archive at Nabble.com.

How to decode messages remaining in buffer when tcp session is idle?

2007-10-31 Thread johnnyv_cn
Thank you, Trustin. Your instructions are of great help. I have another question: How to decode messages remaining in buffer when tcp session is idle? I have stored the buffer in session, and I can also get the buffer from my sessionIdle() method. But I don't know how to tell MINA to decode the

Bad Content-Length problem

2007-10-26 Thread johnnyv_cn
Dear all, I am using MINA in my project to implement a TCP server. The server needs to hold long-lived connections with clients. The server and clients use HTTP-like protocol to exchange xml messages. Here is a simlified message example: POST / HTTP/1.1 Content-Length: 69 ?xml version=1.0