Project: Tomcat
Bug 50903 Current keep-alive request processed after connector.stop()
Reported: 2011-03-09 14:34:53 | Status: resolved fixed

When the connector is stopped, if a connection is in a keep-alive state the next request received by that connection will be processed and then the connection will be closed. When the request is received, it should be rejected. Outstanding questions: - What return code (if any) should be sent back to the client? - If the reading of a request starts before the connector is stopped, should that request be allowed to complete or should it be rejected?

Files changed in fix:
java/org/apache/coyote/ajp/AjpProcessor.java java/org/apache/coyote/http11/Http11AprProcessor.java java/org/apache/coyote/http11/Http11NioProcessor.java java/org/apache/coyote/http11/Http11Processor.java test/org/apache/catalina/connector/TestConnector.java test/org/apache/catalina/startup/TesterServlet.java test/org/apache/catalina/startup/TomcatBaseTest.java