This is an automated email from the ASF dual-hosted git repository.
rmaucher pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new fc04e4887f KeepAliveCount is a default attribute
fc04e4887f is described below
commit fc04e4887f1774e7aacb9bacf08bf631f00b811d
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 c475b03c94..a0e5c0954c 100644
--- a/java/org/apache/tomcat/util/net/AbstractEndpoint.java
+++ b/java/org/apache/tomcat/util/net/AbstractEndpoint.java
@@ -1708,6 +1708,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]