David Boreham wrote:
Filip Hanik - Dev Lists wrote:
are you able to submit a simple example, and we shall get it taken
care of
Yes...but only in the parallel universe where I have loads of spare
time ;) 0.18
like the people helping you for free on the mailing lists? :)
Realistically it'd be quicker for me to debug the problem in situ and
fix it
than to create an isolate reproduction case (since that involves creating
a client too).
One more question before I dive in : what's the 'correct' way for the
application to terminate a live Comet request ? That is, suppose the
client connects, sends an http request, which we process, then the
client does exactly nothing, forever. Unless the server closes the
TCP connection, this connection will stay open until the end of time
(and that's what I observe practically). How should the application force
the closure of the connection ? (possibly the answer is 'send a response
to the client which causes it to close', but given the fact that Tomcat
never sends anything to the client, that doesn't work). I've tried
calling
event.close(), and close() on the response stream. Neither seems
to have the desired effect.
event.close() during an event is the correct way, that will terminate it.
In 6.0.19 you will also be able to call event.close() asynchronously, on
a non worker thread
It'd be useful to know the intended
behavior of the CometProcessor interface, so I can determine if
it's behaving as intended. Right now I don't have a clear definition
in my mind of either the intended interface behavior, nor the actual
implementation behavior, nor if the two are the same or different.
before you debug 6.0.18, there are fixes in 6.0.x/trunk that you may
want to try out before you dig into the older code base
Filip
Thanks again for your help.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org