if (rc != APR_SUCCESS) {
int http_err;
char *msg = ap_escape_html(r->pool, r->uri);
- if (APR_STATUS_IS_TIMEUP(rc)) {
- http_err = HTTP_REQUEST_TIME_OUT;
- msg = apr_psprintf(r->pool, "Timeout reading the body "
- "(URI: %s)", msg);
- }
- else {
- http_err = ap_map_http_request_error(rc, HTTP_BAD_REQUEST);
- msg = apr_psprintf(r->pool,
- "An error occurred while reading"
- " the request body (URI: %s)", msg);
- }
+ http_err = ap_map_http_request_error(rc, HTTP_BAD_REQUEST);
+ msg = apr_psprintf(r->pool, "An error occurred while reading "
+ "the request body (URI: %s)",
+ msg);
err = dav_new_error(r->pool, http_err, 0, rc, msg);
break;
}
APR_BLOCK_READ, HUGE_STRING_LEN);
if (rv != APR_SUCCESS) {
- if (APR_STATUS_IS_TIMEUP(rv)) {
- ap_log_rerror(APLOG_MARK, APLOG_ERR, rv, r, APLOGNO(01224)
- "Timeout during reading request entity data");
- return HTTP_REQUEST_TIME_OUT;
- }
ap_log_rerror(APLOG_MARK, APLOG_ERR, rv, r, APLOGNO(01225)
"Error reading request entity data");
return ap_map_http_request_error(rv, HTTP_BAD_REQUEST);
APR_BLOCK_READ, HUGE_STRING_LEN);
if (rv != APR_SUCCESS) {
- if (APR_STATUS_IS_TIMEUP(rv)) {
- ap_log_rerror(APLOG_MARK, APLOG_ERR, rv, r, APLOGNO(01269)
- "Timeout during reading request entity data");
- return HTTP_REQUEST_TIME_OUT;
- }
ap_log_rerror(APLOG_MARK, APLOG_ERR, rv, r, APLOGNO(01270)
"Error reading request entity data");
return ap_map_http_request_error(rv, HTTP_BAD_REQUEST);