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 206e0f1151 Don't attempt to release Semaphore that was not acquired.
206e0f1151 is described below
commit 206e0f1151b8bec8c97821697ec4256048ed6760
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 9f9cbc947c..67a7752a8a 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]