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?
Created attachment 26755 [details] Basic patch - needs work This patch provides an idea of how this might be tackled. This will stop and request where the request has not been completely read. This is probably not the ideal approach.
The basic patch had a number of issues. The final patch was slightly different. The main change is the cut-off point. For a request to continue processing: - the request line must have been completed for HTTP requests - the first packet must have been completed for AJP requests