This is an automated email from the ASF dual-hosted git repository.

markt-asf pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/10.1.x by this push:
     new 7568527160 Better comment
7568527160 is described below

commit 75685271603f2573a317ee3b4067c610b88398e8
Author: Mark Thomas <[email protected]>
AuthorDate: Sat Jun 6 09:51:57 2026 +0100

    Better comment
---
 java/org/apache/coyote/Request.java | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/java/org/apache/coyote/Request.java 
b/java/org/apache/coyote/Request.java
index 6b378e0ac1..641298be39 100644
--- a/java/org/apache/coyote/Request.java
+++ b/java/org/apache/coyote/Request.java
@@ -1204,9 +1204,10 @@ public final class Request {
         headers.recycle();
         trailerFields.recycle();
         /*
-         * Trailer fields are limited in size by bytes. The following call 
ensures that any request with a large number
+         * Trailer fields are limited in size by bytes. The following calls 
ensures that any request with a large number
          * of small trailer fields doesn't result in a long lasting, large 
array of headers inside the MimeHeader
-         * instance.
+         * instance. The first call ensures the array is no larger than 8. The 
second call allows the next request to
+         * process more than 8 headers if it needs to.
          */
         trailerFields.setLimit(MimeHeaders.DEFAULT_HEADER_SIZE);
         trailerFields.setLimit(-1);


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to