This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.1.x by this push:
new 0521458bcf Fix potential concurrency issue
0521458bcf is described below
commit 0521458bcf3ddae9d812fd253ef45eaa1200c4d0
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 41d9f220aa..d90811f9d6 100644
--- a/java/org/apache/catalina/ha/deploy/FileMessageFactory.java
+++ b/java/org/apache/catalina/ha/deploy/FileMessageFactory.java
@@ -217,7 +217,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]