Uploaded image for project: 'James Imap'
  1. James Imap
  2. IMAP-377

IMAPServer dosen't stop it's HashedWheelTimer on shutdown

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • None
    • Protocol
    • None
    • Linux (arch) with Oracle JDK 6 and eclipse 4.3.0

    Description

      protocols/protocols-imap4/src/main/java/org/apache/james/imapserver/netty/IMAPServer.java, the IMAPServer class implements createPipelineFactory(), which creates an anonymous ChannelPipelineFactory class that has, among other things, a HashedWHeelTimer in it. This timer is never stopped, causing the JVM to hang on shutdown.

      My solution (attached) was to create a private inner class that implements ExternalResourceReleasable, which causes the pipeline termination code to allow the factory to stop the timer.

      Attachments

        1. IMAPServer-termination.patch
          2 kB
          Daniel Gryniewicz

        Activity

          People

            eric@apache.org Eric Charles
            gryniewicz Daniel Gryniewicz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: