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
commit 0a86874349c08b01a96f3c1f9f1f51dddbb74528 Author: Mark Thomas <ma...@apache.org> AuthorDate: Wed Sep 15 13:56:45 2021 +0100 Make synchronized as method assumes a lock is held on the instance --- java/org/apache/coyote/http2/Http2UpgradeHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/org/apache/coyote/http2/Http2UpgradeHandler.java b/java/org/apache/coyote/http2/Http2UpgradeHandler.java index f28ae6d..045337a 100644 --- a/java/org/apache/coyote/http2/Http2UpgradeHandler.java +++ b/java/org/apache/coyote/http2/Http2UpgradeHandler.java @@ -1056,7 +1056,7 @@ class Http2UpgradeHandler extends AbstractStream implements InternalHttpUpgradeH } - private int allocate(AbstractStream stream, int allocation) { + private synchronized int allocate(AbstractStream stream, int allocation) { if (log.isDebugEnabled()) { log.debug(sm.getString("upgradeHandler.allocate.debug", getConnectionId(), stream.getIdAsString(), Integer.toString(allocation))); --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org