This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new 9440da0918 Remove unnecessary code
9440da0918 is described below
commit 9440da0918141fef33d5071a6ea8780b7da4c58e
Author: Mark Thomas <[email protected]>
AuthorDate: Wed Apr 8 15:10:43 2026 +0100
Remove unnecessary code
---
java/org/apache/coyote/http2/Stream.java | 8 --------
1 file changed, 8 deletions(-)
diff --git a/java/org/apache/coyote/http2/Stream.java
b/java/org/apache/coyote/http2/Stream.java
index 2c0bfb98f6..7cec035e96 100644
--- a/java/org/apache/coyote/http2/Stream.java
+++ b/java/org/apache/coyote/http2/Stream.java
@@ -392,8 +392,6 @@ class Stream extends AbstractNonZeroStream implements
HeaderEmitter {
headerException = new StreamException(
sm.getString("stream.header.duplicate",
getConnectionId(), getIdAsString(), ":method"),
Http2Error.PROTOCOL_ERROR, getIdAsInt());
- // No need for further processing. The stream will be
reset.
- return;
}
break;
}
@@ -404,8 +402,6 @@ class Stream extends AbstractNonZeroStream implements
HeaderEmitter {
headerException = new StreamException(
sm.getString("stream.header.duplicate",
getConnectionId(), getIdAsString(), ":scheme"),
Http2Error.PROTOCOL_ERROR, getIdAsInt());
- // No need for further processing. The stream will be
reset.
- return;
}
break;
}
@@ -448,8 +444,6 @@ class Stream extends AbstractNonZeroStream implements
HeaderEmitter {
headerException = new StreamException(
sm.getString("stream.header.duplicate",
getConnectionId(), getIdAsString(), ":authority"),
Http2Error.PROTOCOL_ERROR, getIdAsInt());
- // No need for further processing. The stream will be
reset.
- return;
}
break;
}
@@ -478,8 +472,6 @@ class Stream extends AbstractNonZeroStream implements
HeaderEmitter {
headerException = new StreamException(
sm.getString("stream.header.duplicate",
getConnectionId(), getIdAsString(), "host"),
Http2Error.PROTOCOL_ERROR, getIdAsInt());
- // No need for further processing. The stream will be
reset.
- return;
}
break;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]