Mantis - Resin
Viewing Issue Advanced Details
4250 minor always 10-07-10 15:57 01-10-11 14:30
emil  
ferg  
normal  
closed 4.0.10  
fixed  
none    
none 4.0.14  
0004250: AsyncListener.onComplete called at end of service(), not after AsyncContext.complete
(rep by baoqinye via forums)

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).

Notes
(0004897)
ferg   
01-10-11 14:30   
server/1lb4