This is an automated email from the ASF dual-hosted git repository.
rmaucher 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 d4af97e5da KeepAliveCount is a default attribute
d4af97e5da is described below
commit d4af97e5dade3646e6e60569bee98f4c4a992b36
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 88a25915a2..b44de4d433 100644
--- a/java/org/apache/tomcat/util/net/AbstractEndpoint.java
+++ b/java/org/apache/tomcat/util/net/AbstractEndpoint.java
@@ -1656,6 +1656,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]