This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new 45f339eea0 Fix potential concurrency issue
45f339eea0 is described below
commit 45f339eea004bfa86602bc69f084c286956fd4e1
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 ee17b9cec1..bed73ed68a 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]