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

SocketConnector uses non-daemon thread

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 1.1.7
    • None
    • Transport
    • None

    Description

      The no-args constructor of the class org.apache.mina.transport.socket.nio.SocketConnector uses a NewThreadExecutor for handling background processing tasks.

      The problem is, that NewThreadExecutor starts a non-daemon thread. This causes problems when the class is used in Tomcat, because the server refuses to shut down and can only be stopped using a process kill.

      In my environment, I have fixed the problem by explicitly calling the SocketConnector(int processorCount, Executor executor) constructor and providing an executor that starts a daemon thread.

      IMHO, this should be the default behaviour.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            patrick.peck Patrick Peck
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment