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

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


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

commit dcb79621aa950be740113974fed824575db5f56e
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 8107bd708e..929794e7b0 100644
--- a/java/org/apache/coyote/Request.java
+++ b/java/org/apache/coyote/Request.java
@@ -1229,9 +1229,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