james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Gryniewicz (JIRA)" <server-...@james.apache.org>
Subject [jira] [Updated] (IMAP-377) IMAPServer dosen't stop it's HashedWheelTimer on shutdown
Date Mon, 16 Sep 2013 14:02:52 GMT

     [ 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


Mime
View raw message