-*- coding: utf-8 -*-
Changes with Apache 2.5.0
+ *) http: Respond with "408 Request Timeout" when a timeout occurs while
+ reading the request body. [Yann Ylavic]
+
*) scoreboard/status: Keep workers' previous Client, VHost and Request values
when idle, like in 2.4.18 and earlier. [Yann Ylavic]
AP_DECLARE(int) ap_map_http_request_error(apr_status_t rv, int status)
{
switch (rv) {
- case AP_FILTER_ERROR: {
+ case AP_FILTER_ERROR:
return AP_FILTER_ERROR;
- }
- case APR_EGENERAL: {
+
+ case APR_EGENERAL:
return HTTP_BAD_REQUEST;
- }
- case APR_ENOSPC: {
+
+ case APR_ENOSPC:
return HTTP_REQUEST_ENTITY_TOO_LARGE;
- }
- case APR_ENOTIMPL: {
+
+ case APR_ENOTIMPL:
return HTTP_NOT_IMPLEMENTED;
- }
- case APR_ETIMEDOUT: {
+
+ case APR_TIMEUP:
+ case APR_ETIMEDOUT:
return HTTP_REQUEST_TIME_OUT;
- }
- default: {
+
+ default:
return status;
}
- }
}
/* In HTTP/1.1, any method can have a body. However, most GET handlers