https://bz.apache.org/bugzilla/show_bug.cgi?id=58457
Bug ID: 58457 Summary: After async request timeout, response is not closed + works on subsequent requests Product: Tomcat 8 Version: 8.0.26 Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P2 Component: Catalina Assignee: dev@tomcat.apache.org Reporter: rstoyanc...@yahoo.com Created attachment 33140 --> https://bz.apache.org/bugzilla/attachment.cgi?id=33140&action=edit AsyncServlet The attached AsyncServlet starts an async request with a 5 second timeout and then schedules a write + flush every second ignoring any exceptions. After the timeout, the flush starts running into NPE. If the client connects again, you see two threads writing to the response and the client gets the output from both, including buffered output from the first thread after the timeout. Then timeout and both threads start getting NPE. If the client connects a third time you see three threads writing to the response and the client gets buffered output from the first two threads after the last timeout. And so on. After the timeout, the response should be properly closed and it shouldn't be possible to write to it again. For comparison that's how it seems to work on Jetty. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org