This is an automated email from the ASF dual-hosted git repository.
markt-asf 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 738fca57c1 Make default value of interruptThreadThreshold explicit
738fca57c1 is described below
commit 738fca57c1cb50b98536e9114ec8cb37ffab4b30
Author: lihongyi <[email protected]>
AuthorDate: Sun Aug 2 11:31:37 2026 +0800
Make default value of interruptThreadThreshold explicit
The interruptThreadThreshold field relied on the Java default of 0
which disables thread interruption. The Javadoc and valve
documentation both state the default is -1. Make the default
explicit (-1) so the code matches the documented behaviour.
---
java/org/apache/catalina/valves/StuckThreadDetectionValve.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/java/org/apache/catalina/valves/StuckThreadDetectionValve.java
b/java/org/apache/catalina/valves/StuckThreadDetectionValve.java
index 9134fda5a8..9302697de5 100644
--- a/java/org/apache/catalina/valves/StuckThreadDetectionValve.java
+++ b/java/org/apache/catalina/valves/StuckThreadDetectionValve.java
@@ -71,7 +71,7 @@ public class StuckThreadDetectionValve extends ValveBase {
/**
* In seconds. Default is -1 to disable interruption.
*/
- private int interruptThreadThreshold;
+ private int interruptThreadThreshold = -1;
/**
* The only references we keep to actual running Thread objects are in
this Map (which is automatically cleaned in
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]