On Jun 30, 2006, at 3:50 AM, John Preston wrote:
> I'm trying to use the HttpProtocolHandler in the MINA exmaples to keep
> re-using the same IOSession between requests, but each time I send a
> simple get query it opens a new session. Dosn't this mean that I have
> not kept the TCP socket channel open between requests, thus the
> keep-alive settings are having no effect.
Correct, the example HTTP protocol handler does not support Keep-Alive.
If you are looking for an HTTP server built upon MINA, check out
http://asyncweb.safehaus.org/
I've looked but they seem to be using an earlier MINA codebase and
they use IoHandler which receives all of the message in a ByteBuffer.
I liked the stream interface. Also I can't see where they intercept
the close session code to avoiding closing the session after a message
is written.
I've got the example working fine but I can't see where its calling
closeSession before each new message, and I've set all the timeouts,
etc.
-pete
--
[EMAIL PROTECTED] - http://fotap.org/~osi