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 2023/05/02 11:12:56 UTC

[tomcat] branch 10.1.x updated (cabb30037e -> 5ed170cbff)

This is an automated email from the ASF dual-hosted git repository.

markt pushed a change to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


    from cabb30037e Fix Eclipse warning
     new d22fc4efaa Don't allow idle threads to live forever
     new 5ed170cbff Update change log

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 java/org/apache/tomcat/websocket/AsyncChannelGroupUtil.java | 4 ++--
 webapps/docs/changelog.xml                                  | 5 +++++
 2 files changed, 7 insertions(+), 2 deletions(-)


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[tomcat] 01/02: Don't allow idle threads to live forever

Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git

commit d22fc4efaa0d8831b730ca573d3406f82c780be6
Author: Matthew Painter <mj...@users.noreply.github.com>
AuthorDate: Thu Apr 27 14:45:13 2023 +0100

    Don't allow idle threads to live forever
---
 java/org/apache/tomcat/websocket/AsyncChannelGroupUtil.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/java/org/apache/tomcat/websocket/AsyncChannelGroupUtil.java b/java/org/apache/tomcat/websocket/AsyncChannelGroupUtil.java
index f2510a84b7..492fdc53bf 100644
--- a/java/org/apache/tomcat/websocket/AsyncChannelGroupUtil.java
+++ b/java/org/apache/tomcat/websocket/AsyncChannelGroupUtil.java
@@ -81,8 +81,8 @@ public class AsyncChannelGroupUtil {
             // These are the same settings as the default
             // AsynchronousChannelGroup
             int initialSize = Runtime.getRuntime().availableProcessors();
-            ExecutorService executorService = new ThreadPoolExecutor(0, Integer.MAX_VALUE, Long.MAX_VALUE,
-                    TimeUnit.MILLISECONDS, new SynchronousQueue<>(), new AsyncIOThreadFactory());
+            ExecutorService executorService = new ThreadPoolExecutor(0, Integer.MAX_VALUE, 60,
+                    TimeUnit.SECONDS, new SynchronousQueue<>(), new AsyncIOThreadFactory());
 
             try {
                 return AsynchronousChannelGroup.withCachedThreadPool(executorService, initialSize);


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[tomcat] 02/02: Update change log

Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git

commit 5ed170cbffda0b251abd78e5567b15858e5e052b
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Tue May 2 12:12:13 2023 +0100

    Update change log
---
 webapps/docs/changelog.xml | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index c0b9389f53..2112a1c029 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -159,6 +159,11 @@
         Improve exception handling when flushing batched messages during
         WebSocket session close. (markt)
       </fix>
+      <fix>
+        <bug>66581</bug>: Update <code>AsyncChannelGroupUtil</code> to align it
+        with the current defaults for AsynchronousChannelGroup. Pull request
+        <pr>612</pr> by Matthew Painter. (markt)
+      </fix>
     </changelog>
   </subsection>
 </section>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org