You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2026/08/11 10:43:52 UTC
(tomcat) branch main updated: Make default value of interruptThreadThreshold explicit
This is an automated email from the ASF dual-hosted git repository.
markt-asf 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 8a5e70dbd4 Make default value of interruptThreadThreshold explicit
8a5e70dbd4 is described below
commit 8a5e70dbd4e7c4f6e16e0e5968776b9c58b014a2
Author: lihongyi <64...@qq.com>
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org