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 ca06a33bd4 Update comment
ca06a33bd4 is described below
commit ca06a33bd42af8f0d384802b61be83cbfd48ccc2
Author: Mark Thomas <[email protected]>
AuthorDate: Thu Jul 27 15:48:59 2023 +0100
Update comment
---
java/org/apache/coyote/http2/Stream.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/java/org/apache/coyote/http2/Stream.java
b/java/org/apache/coyote/http2/Stream.java
index 1a4ab09743..7fa900aced 100644
--- a/java/org/apache/coyote/http2/Stream.java
+++ b/java/org/apache/coyote/http2/Stream.java
@@ -896,7 +896,7 @@ class Stream extends AbstractNonZeroStream implements
HeaderEmitter {
private volatile boolean endOfStreamSent = false;
/*
- * The write methods are synchronized to ensure that only one thread
at a time is able to access the buffer.
+ * The write methods share a common lock to ensure that only one
thread at a time is able to access the buffer.
* Without this protection, a client that performed concurrent writes
could corrupt the buffer.
*/
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]