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 efea9d2641 Update comment efea9d2641 is described below commit efea9d264140ddc7fdcbe5c88060d4f65169b8d2 Author: Mark Thomas <ma...@apache.org> AuthorDate: Wed Jul 26 17:19:22 2023 +0100 Update comment --- java/org/apache/coyote/http2/Http2UpgradeHandler.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/java/org/apache/coyote/http2/Http2UpgradeHandler.java b/java/org/apache/coyote/http2/Http2UpgradeHandler.java index d890945452..73ddc28f3f 100644 --- a/java/org/apache/coyote/http2/Http2UpgradeHandler.java +++ b/java/org/apache/coyote/http2/Http2UpgradeHandler.java @@ -1338,9 +1338,10 @@ class Http2UpgradeHandler extends AbstractStream implements InternalHttpUpgradeH Stream pushStream; - // Synchronized since PUSH_PROMISE frames have to be sent in order. Once - // the stream has been created we need to ensure that the PUSH_PROMISE - // is sent before the next stream is created for a PUSH_PROMISE. + /* + * Uses SocketWrapper lock since PUSH_PROMISE frames have to be sent in order. Once the stream has been created + * we need to ensure that the PUSH_PROMISE is sent before the next stream is created for a PUSH_PROMISE. + */ Lock lock = socketWrapper.getLock(); lock.lock(); try { --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org