Uploaded image for project: 'MINA'
  1. MINA
  2. DIRMINA-1015

AbstractIoService creates unnamed non-daemon threads

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Not A Problem
    • Affects Version/s: 2.0.9
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              matthew.kusnierz@gmail.com Matt Kusnierz
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: