You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Matt Kusnierz (JIRA)" <ji...@apache.org> on 2015/06/26 15:13:04 UTC
[jira] [Created] (DIRMINA-1015) AbstractIoService creates unnamed
non-daemon threads
Matt Kusnierz created DIRMINA-1015:
--------------------------------------
Summary: AbstractIoService creates unnamed non-daemon threads
Key: DIRMINA-1015
URL: https://issues.apache.org/jira/browse/DIRMINA-1015
Project: MINA
Issue Type: Improvement
Components: Core
Affects Versions: 2.0.9
Reporter: Matt Kusnierz
Priority: Minor
The org.apache.mina.core.service.AbstractIoService can create an executor in its constructor. This executor is creating simply using the java.util.concurrent.Executors.newCachedThreadPool() factory method. But this create threads with unhelpful "thread-x-pool-y" names, and more importantly creates non-daemon threads. The daemon thread aspect can lead to applications not properly terminating. When no executor is supplied as a constructor argument, the default should be to create a newCachedThreadPool, but to supply a ThreadFactory that a) creates "mina-xxx" named threads, and b) creates daemon threads.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)