Skip to content

Commit 1d572ae

Browse files
committed
no AH01588 for ap_get_client_block + CL over limit
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1911249 13f79535-47bb-0310-9956-ffa450edef68
1 parent dbb364c commit 1d572ae

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

docs/log-message-tags/next-number

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
10483
1+
10484

modules/http/http_filters.c

+8-1
Original file line numberDiff line numberDiff line change
@@ -1561,7 +1561,14 @@ AP_DECLARE(int) ap_setup_client_block(request_rec *r, int read_policy)
15611561
}
15621562

15631563
if (limit_req_body > 0 && (r->remaining > limit_req_body)) {
1564-
/* will be logged when the body is discarded */
1564+
/* 01588 msg in HTTP_IN filter will be skipped for a connection-dropping status,
1565+
* so log a similar message here.
1566+
*/
1567+
ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, APLOGNO(10483)
1568+
"Requested content-length of %" APR_OFF_T_FMT
1569+
" is larger than the configured limit"
1570+
" of %" APR_OFF_T_FMT, r->remaining, limit_req_body);
1571+
15651572
return HTTP_REQUEST_ENTITY_TOO_LARGE;
15661573
}
15671574

0 commit comments

Comments
 (0)