This is an automated email from the ASF dual-hosted git repository.
remm 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 05543c8ae5 Update createExecutor with the new attribute
05543c8ae5 is described below
commit 05543c8ae5286ba0582c0374c8ebb6ea7f402d9f
Author: remm <[email protected]>
AuthorDate: Tue Mar 12 20:41:06 2024 +0100
Update createExecutor with the new attribute
---
java/org/apache/tomcat/util/net/AbstractEndpoint.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/java/org/apache/tomcat/util/net/AbstractEndpoint.java
b/java/org/apache/tomcat/util/net/AbstractEndpoint.java
index 006e8925ef..31969af460 100644
--- a/java/org/apache/tomcat/util/net/AbstractEndpoint.java
+++ b/java/org/apache/tomcat/util/net/AbstractEndpoint.java
@@ -1222,8 +1222,9 @@ public abstract class AbstractEndpoint<S,U> {
} else {
TaskQueue taskqueue = new TaskQueue();
TaskThreadFactory tf = new TaskThreadFactory(getName() + "-exec-",
daemon, getThreadPriority());
- executor = new ThreadPoolExecutor(getMinSpareThreads(),
getMaxThreads(), 60, TimeUnit.SECONDS,taskqueue, tf);
- taskqueue.setParent( (ThreadPoolExecutor) executor);
+ executor = new ThreadPoolExecutor(getMinSpareThreads(),
getMaxThreads(), getThreadsMaxIdleTime(),
+ TimeUnit.MILLISECONDS, taskqueue, tf);
+ taskqueue.setParent((ThreadPoolExecutor) executor);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]