This is an automated email from the ASF dual-hosted git repository.
markt-asf 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 a8b26014e9 Don't attempt to release Semaphore that was not acquired.
a8b26014e9 is described below
commit a8b26014e906823cc11289d7494bdc8a7b2943e5
Author: Mark Thomas <[email protected]>
AuthorDate: Wed Jun 3 14:59:02 2026 +0100
Don't attempt to release Semaphore that was not acquired.
---
java/org/apache/catalina/valves/PersistentValve.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/java/org/apache/catalina/valves/PersistentValve.java
b/java/org/apache/catalina/valves/PersistentValve.java
index b388a4c016..5bd48e776a 100644
--- a/java/org/apache/catalina/valves/PersistentValve.java
+++ b/java/org/apache/catalina/valves/PersistentValve.java
@@ -155,6 +155,7 @@ public class PersistentValve extends ValveBase {
}
} else {
if (!semaphore.tryAcquire()) {
+ mustReleaseSemaphore = false;
onSemaphoreNotAcquired(request, response);
if (containerLog.isDebugEnabled()) {
containerLog.debug(
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]