PDA

View Full Version : Servlet 3.0 implementation --- AsyncListener.onComplete()


baoqinye
10-07-2010, 09:43 PM
We are testing the Servlet 3.0 implementation in Resin 4.0.10 (open source version) here. We add one AsyncListener to the request's AsyncContext. When it's ready to send the response back, we call AsyncContext.complete().

What we noticed is that the AsyncListener.onComplete() method is actually called at the end of the doGet or doPost method rather than after AsyncContext.complete() is called.

We performed the same test in Tomcat and Tomcat seems to handle it properly (AsyncListener.onComplete() is called after AsyncContext.complete() is called).

Is this considered a bug in Resin 4.0.10?

Thanks

Jenny

emil
10-07-2010, 10:58 PM
Hi Jenny,

That also looks like a bug:

http://bugs.caucho.com/view.php?id=4250

Thanks for the report,
Emil