https://issues.apache.org/bugzilla/show_bug.cgi?id=51429
Bug #: 51429
Summary: User disconnection is not noticed by AsyncListener
Product: Tomcat 7
Version: 7.0.16
Platform: PC
Status: NEW
Severity: major
Priority: P2
Component: Catalina
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
Steps to reproduce:
1) Create Async servlet and deploy
@WebServlet("/foo" asyncSupported=true)
public class MyServlet extends HttpServlet {
public void doGet(HttpServletRequest req, HttpServletResponse res) {
...
AsyncContext ctx = request.startAsync(req, res);
ctx.addListener(new AsyncListener() { .... });
ctx.setTimeout(8*60*1000);
}
}
2) Call the servlet in a browser
3) Close the browser
Expected result:
Event should be fired (user is disconnected) in the listener
Current result:
No event is fired.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]