You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Trustin Lee (JIRA)" <ji...@apache.org> on 2005/10/17 18:37:45 UTC

[jira] Closed: (DIRMINA-90) Provide a way to release resources for ProtocolEncoder and ProtocolDecoder

     [ http://issues.apache.org/jira/browse/DIRMINA-90?page=all ]
     
Trustin Lee closed DIRMINA-90:
------------------------------

    Resolution: Fixed

Done.  Please note that MessageEncoder and MessageDecoder doesn't have dispose() hook anymore.  Refer to DemuxingProtocolCodecFactory.disposeCodecResources().

> Provide a way to release resources for ProtocolEncoder and ProtocolDecoder
> --------------------------------------------------------------------------
>
>          Key: DIRMINA-90
>          URL: http://issues.apache.org/jira/browse/DIRMINA-90
>      Project: Directory MINA
>         Type: Improvement
>     Versions: 0.7
>     Reporter: Trustin Lee
>     Assignee: Trustin Lee
>     Priority: Minor
>      Fix For: 0.9

>
> There's no way to release resources allocated in the constructor for ProtocolEncoder and ProtocolDecoder.  It becomes a problem when user implements them to acquire resources that must be released explicitly such as file descriptors.
> We could simply add dispose() or release() method to give a change for user to release them when the connection is closed, but it becomes a big problem when user shares an encoder or decoder instance for multiple sessions.  And we also have to consider stateless transport types such as datagram carefully.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira