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

rmaucher 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 e0ffdf468f KeepAliveCount is a default attribute
e0ffdf468f is described below

commit e0ffdf468fe6375c6aac231769e6f49d16b9acbd
Author: remm <[email protected]>
AuthorDate: Mon Sep 21 08:50:16 2026 +0200

    KeepAliveCount is a default attribute
    
    So always provide a default value.
---
 java/org/apache/tomcat/util/net/AbstractEndpoint.java | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/java/org/apache/tomcat/util/net/AbstractEndpoint.java 
b/java/org/apache/tomcat/util/net/AbstractEndpoint.java
index 459764b73d..d807e13de6 100644
--- a/java/org/apache/tomcat/util/net/AbstractEndpoint.java
+++ b/java/org/apache/tomcat/util/net/AbstractEndpoint.java
@@ -1909,6 +1909,15 @@ public abstract class AbstractEndpoint<S, U> {
         }
     }
 
+    /**
+     * Number of keep-alive sockets.
+     *
+     * @return the default implementation returns 0
+     */
+    public int getKeepAliveCount() {
+        return 0;
+    }
+
     /**
      * Check if the endpoint is running.
      *


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

Reply via email to