From: Eric Covener Date: Mon, 24 Jul 2023 17:31:38 +0000 (+0000) Subject: no AH01588 for ap_get_client_block + CL over limit X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1d572ae866d1ad221f5c9b9d01e5bfaee43afcb6;p=thirdparty%2Fapache%2Fhttpd.git 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 --- diff --git a/docs/log-message-tags/next-number b/docs/log-message-tags/next-number index af438e51362..f6219db0cff 100644 --- a/docs/log-message-tags/next-number +++ b/docs/log-message-tags/next-number @@ -1 +1 @@ -10483 +10484 diff --git a/modules/http/http_filters.c b/modules/http/http_filters.c index de04bec9fb5..b039fc352b7 100644 --- a/modules/http/http_filters.c +++ b/modules/http/http_filters.c @@ -1561,7 +1561,14 @@ AP_DECLARE(int) ap_setup_client_block(request_rec *r, int read_policy) } if (limit_req_body > 0 && (r->remaining > limit_req_body)) { - /* will be logged when the body is discarded */ + /* 01588 msg in HTTP_IN filter will be skipped for a connection-dropping status, + * so log a similar message here. + */ + ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, APLOGNO(10483) + "Requested content-length of %" APR_OFF_T_FMT + " is larger than the configured limit" + " of %" APR_OFF_T_FMT, r->remaining, limit_req_body); + return HTTP_REQUEST_ENTITY_TOO_LARGE; }