]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
no AH01588 for ap_get_client_block + CL over limit
authorEric Covener <covener@apache.org>
Mon, 24 Jul 2023 17:31:38 +0000 (17:31 +0000)
committerEric Covener <covener@apache.org>
Mon, 24 Jul 2023 17:31:38 +0000 (17:31 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1911249 13f79535-47bb-0310-9956-ffa450edef68

docs/log-message-tags/next-number
modules/http/http_filters.c

index af438e51362f3c3fd0fd12f447c4972e1ae40865..f6219db0cff410fe28223aee1bc11ca7c6b265f4 100644 (file)
@@ -1 +1 @@
-10483
+10484
index de04bec9fb5e92e9849244a118df536ab8b16ab6..b039fc352b7e21c129f6d55af98d7fe366f79992 100644 (file)
@@ -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;
     }