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 11:21:44 UTC
[jira] Commented: (DIRMINA-90) Provide a way to release resources for ProtocolEncoder and ProtocolDecoder
[ http://issues.apache.org/jira/browse/DIRMINA-90?page=comments#action_12332216 ]
Trustin Lee commented on DIRMINA-90:
------------------------------------
I've checked in the fix to MINA trunk. All encoders and decoders have dispose() method now.
It should work fine with TCP/IP transport type now, but not yet with UDP. I'll fix this after resolving DIRMINA-96.
> 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