This is an automated email from the ASF dual-hosted git repository.
markt-asf 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 4150f4356a Fix potential concurrency issue
4150f4356a is described below
commit 4150f4356a0c58c7fa5174186488c12a45869e8d
Author: Mark Thomas <[email protected]>
AuthorDate: Wed Jun 24 18:35:49 2026 +0100
Fix potential concurrency issue
---
java/org/apache/catalina/ha/deploy/FileMessageFactory.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/java/org/apache/catalina/ha/deploy/FileMessageFactory.java
b/java/org/apache/catalina/ha/deploy/FileMessageFactory.java
index 4c49bfac29..68e9596e6f 100644
--- a/java/org/apache/catalina/ha/deploy/FileMessageFactory.java
+++ b/java/org/apache/catalina/ha/deploy/FileMessageFactory.java
@@ -207,7 +207,7 @@ public class FileMessageFactory {
*
* @return returns true if the file is complete and outputstream is
closed, false otherwise.
*/
- public boolean writeMessage(FileMessage msg) throws
IllegalArgumentException, IOException {
+ public synchronized boolean writeMessage(FileMessage msg) throws
IllegalArgumentException, IOException {
if (!openForWrite) {
throw new
IllegalArgumentException(sm.getString("fileMessageFactory.cannotWrite"));
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]