You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2021/06/15 16:18:35 UTC

[tomcat] branch 10.0.x updated: Update comments after change to DEFAULT_OVERHEAD_REDUCTION_FACTOR

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

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


The following commit(s) were added to refs/heads/10.0.x by this push:
     new d606e64  Update comments after change to DEFAULT_OVERHEAD_REDUCTION_FACTOR
d606e64 is described below

commit d606e644f5d458b3bdfe576d8233f3a17fa21247
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Tue Jun 15 17:15:02 2021 +0100

    Update comments after change to DEFAULT_OVERHEAD_REDUCTION_FACTOR
---
 java/org/apache/coyote/http2/Http2UpgradeHandler.java | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/java/org/apache/coyote/http2/Http2UpgradeHandler.java b/java/org/apache/coyote/http2/Http2UpgradeHandler.java
index 34601ba..e12daf5 100644
--- a/java/org/apache/coyote/http2/Http2UpgradeHandler.java
+++ b/java/org/apache/coyote/http2/Http2UpgradeHandler.java
@@ -1396,7 +1396,7 @@ class Http2UpgradeHandler extends AbstractStream implements InternalHttpUpgradeH
         // Http2Protocol.DEFAULT_OVERHEAD_REDUCTION_FACTOR. A simple browser
         // request is likely to have one non-overhead frame (HEADERS) and one
         // overhead frame (REPRIORITISE). With the default settings the overhead
-        // count will remain unchanged for each simple request.
+        // count will reduce by 1 for each simple request.
         // Requests and responses with bodies will create additional
         // non-overhead frames, further reducing the overhead count.
         updateOverheadCount(frameType, Http2Protocol.DEFAULT_OVERHEAD_REDUCTION_FACTOR);
@@ -1406,10 +1406,10 @@ class Http2UpgradeHandler extends AbstractStream implements InternalHttpUpgradeH
     private void increaseOverheadCount(FrameType frameType) {
         // An overhead frame increases the overhead count by
         // overheadCountFactor. By default, this means an overhead frame
-        // increases the overhead count by 1. A simple browser request is likely
-        // to have one non-overhead frame (HEADERS) and one overhead frame
-        // (REPRIORITISE). With the default settings the overhead count will
-        // remain unchanged for each simple request.
+        // increases the overhead count by 1. A simple browser request is
+        // likely to have one non-overhead frame (HEADERS) and one overhead
+        // frame (REPRIORITISE). With the default settings the overhead count
+        // will reduce by 1 for each simple request.
         updateOverheadCount(frameType, getProtocol().getOverheadCountFactor());
     }
 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org