This is an automated email from the ASF dual-hosted git repository.

markt-asf pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/10.1.x by this push:
     new 0ceed0c4bc Review "Hold the SemaphoreValve permit across asynchronous 
processing"
0ceed0c4bc is described below

commit 0ceed0c4bce5141f52d76a305e43d059879f290b
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]

Reply via email to