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 ec85d3e51b Don't attempt to release Semaphore that was not acquired.
ec85d3e51b is described below
commit ec85d3e51bbf72b58ade32bc9e6f3dc7f2727eb6
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 5f67c89ebe..f3301367d2 100644
--- a/java/org/apache/catalina/valves/PersistentValve.java
+++ b/java/org/apache/catalina/valves/PersistentValve.java
@@ -156,6 +156,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]