You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Daniel Gryniewicz (JIRA)" <se...@james.apache.org> on 2013/09/16 16:02:52 UTC
[jira] [Updated] (IMAP-377) IMAPServer dosen't stop it's
HashedWheelTimer on shutdown
[ https://issues.apache.org/jira/browse/IMAP-377?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Gryniewicz updated IMAP-377:
-----------------------------------
Attachment: IMAPServer-termination.patch
Patch creating a private inner class that can properly stop the timer.
> 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: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org