Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
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.