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 570c7b6424 KeepAliveCount is a default attribute
570c7b6424 is described below

commit 570c7b64249494c89de8b5420600530ead7af123
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 b0fe7ff28e..a38278809f 100644
--- a/java/org/apache/tomcat/util/net/AbstractEndpoint.java
+++ b/java/org/apache/tomcat/util/net/AbstractEndpoint.java
@@ -1900,6 +1900,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