Daniel Gryniewicz created IMAP-377:
--------------------------------------

             Summary: IMAPServer dosen't stop it's HashedWheelTimer on shutdown
                 Key: IMAP-377
                 URL: https://issues.apache.org/jira/browse/IMAP-377
             Project: James Imap
          Issue Type: Bug
          Components: Protocol
         Environment: Linux (arch) with Oracle JDK 6 and eclipse 4.3.0
            Reporter: Daniel Gryniewicz
            Assignee: Eric Charles
            Priority: Minor
         Attachments: IMAPServer-termination.patch

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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to