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

rmaucher 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 c4afba3b0a Fix max connections after pause resume
c4afba3b0a is described below

commit c4afba3b0ae2a6f08944b06ceb7ddf8ebc958f6d
Author: remm <[email protected]>
AuthorDate: Wed Sep 2 10:38:37 2026 +0200

    Fix max connections after pause resume
    
    Found by code review.
---
 java/org/apache/tomcat/util/net/AbstractEndpoint.java | 1 +
 webapps/docs/changelog.xml                            | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/java/org/apache/tomcat/util/net/AbstractEndpoint.java 
b/java/org/apache/tomcat/util/net/AbstractEndpoint.java
index aff72b5282..513f84e217 100644
--- a/java/org/apache/tomcat/util/net/AbstractEndpoint.java
+++ b/java/org/apache/tomcat/util/net/AbstractEndpoint.java
@@ -2308,6 +2308,7 @@ public abstract class AbstractEndpoint<S, U> {
      */
     public void resume() {
         if (running) {
+            initializeConnectionLatch();
             paused = false;
         }
     }
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index 3fdd700e8c..1074386d21 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -357,6 +357,9 @@
         Only try and load the native library from the 
<code>CATALINA_HOME</code>
         system property when the property is set. (markt)
       </fix>
+      <fix>
+        Fix max connections enforcement after an enpoint resume. (remm)
+      </fix>
     </changelog>
   </subsection>
   <subsection name="Jasper">


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to