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 d89ebbeb4d Review "Hold the SemaphoreValve permit across asynchronous
processing"
d89ebbeb4d is described below
commit d89ebbeb4dc091c6cb28b9bc8e35cc35289c372c
Author: Mark Thomas <[email protected]>
AuthorDate: Thu Oct 29 17:00:20 2026 +0000
Review "Hold the SemaphoreValve permit across asynchronous processing"
Inner class can be static
---
java/org/apache/catalina/valves/SemaphoreValve.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/java/org/apache/catalina/valves/SemaphoreValve.java
b/java/org/apache/catalina/valves/SemaphoreValve.java
index 200fc76efc..734cab201e 100644
--- a/java/org/apache/catalina/valves/SemaphoreValve.java
+++ b/java/org/apache/catalina/valves/SemaphoreValve.java
@@ -319,7 +319,7 @@ public class SemaphoreValve extends ValveBase {
* Async listener that releases the permit held for a request that entered
asynchronous mode, exactly once, when
* the asynchronous processing completes or fails.
*/
- private class ReleasePermitAsyncListener implements AsyncListener {
+ private static class ReleasePermitAsyncListener implements AsyncListener {
private final Semaphore semaphore;
private final AtomicBoolean released = new AtomicBoolean(false);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]