mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Kusnierz (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DIRMINA-1015) AbstractIoService creates unnamed non-daemon threads
Date Fri, 26 Jun 2015 13:13:04 GMT
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

View raw message