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

markt 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 9f662dd2d2 Additional comments
9f662dd2d2 is described below

commit 9f662dd2d225cc0b644a642cdfcc5d70a3decc2e
Author: Mark Thomas <[email protected]>
AuthorDate: Thu May 29 18:47:42 2025 +0100

    Additional comments
---
 java/org/apache/coyote/http2/Http2AsyncUpgradeHandler.java | 1 +
 java/org/apache/coyote/http2/Http2UpgradeHandler.java      | 1 +
 2 files changed, 2 insertions(+)

diff --git a/java/org/apache/coyote/http2/Http2AsyncUpgradeHandler.java 
b/java/org/apache/coyote/http2/Http2AsyncUpgradeHandler.java
index 747667cfde..f8f2009942 100644
--- a/java/org/apache/coyote/http2/Http2AsyncUpgradeHandler.java
+++ b/java/org/apache/coyote/http2/Http2AsyncUpgradeHandler.java
@@ -133,6 +133,7 @@ public class Http2AsyncUpgradeHandler extends 
Http2UpgradeHandler {
                     se.getError(), se.getMessage()));
         }
 
+        // Treat a sent reset like a received reset and increment the overhead 
count
         increaseOverheadCount(FrameType.RST, 
getProtocol().getOverheadResetFactor());
 
         // Write a RST frame
diff --git a/java/org/apache/coyote/http2/Http2UpgradeHandler.java 
b/java/org/apache/coyote/http2/Http2UpgradeHandler.java
index 93847c1b5a..0b56066050 100644
--- a/java/org/apache/coyote/http2/Http2UpgradeHandler.java
+++ b/java/org/apache/coyote/http2/Http2UpgradeHandler.java
@@ -584,6 +584,7 @@ class Http2UpgradeHandler extends AbstractStream implements 
InternalHttpUpgradeH
                     se.getError(), se.getMessage()));
         }
 
+        // Treat a sent reset like a received reset and increment the overhead 
count
         increaseOverheadCount(FrameType.RST, 
getProtocol().getOverheadResetFactor());
 
         // Write a RST frame


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

Reply via email to