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

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


The following commit(s) were added to refs/heads/main by this push:
     new 08f72350d5 Better comment
08f72350d5 is described below

commit 08f72350d587f9b9359c1d325959c0f6a408bcee
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 8e10da626c..3b4054ff4a 100644
--- a/java/org/apache/coyote/Request.java
+++ b/java/org/apache/coyote/Request.java
@@ -1144,9 +1144,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