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)

Reply via email to