This is an automated email from the ASF dual-hosted git repository.
markt 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 907bb64b16 Remove unnecessary code
907bb64b16 is described below
commit 907bb64b16f44fe5626f23c10c00a2d608efaf65
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 82fa7035b9..0779a80916 100644
--- a/java/org/apache/coyote/http2/Stream.java
+++ b/java/org/apache/coyote/http2/Stream.java
@@ -388,8 +388,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;
}
@@ -400,8 +398,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;
}
@@ -444,8 +440,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;
}
@@ -474,8 +468,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]