when discarding a request body.
PR: 51103
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@
1103213 13f79535-47bb-0310-9956-
ffa450edef68
Changes with Apache 2.3.13
+ *) mod_reqtimeout: Fix a timed out connection going into the keep-alive
+ state after a timeout when discarding a request body. PR 51103.
+ [Stefan Fritsch]
+
*) core: Add various file existance test operators to ap_expr.
[Stefan Fritsch]
* 2s (SECONDS_TO_LINGER).
*/
apr_table_setn(f->c->notes, "short-lingering-close", "1");
+
+ /*
+ * Also, we must not allow keep-alive requests, as
+ * ap_finalize_protocol() may ignore our error status (if the timeout
+ * happened on a request body that is discarded).
+ */
+ f->c->keepalive = AP_CONN_CLOSE;
}
return rv;
}