[ 
http://issues.apache.org/jira/browse/DIRMINA-90?page=comments#action_12332242 ] 

Trustin Lee commented on DIRMINA-90:
------------------------------------

We could modify ProtocolCodecFilter to check if the session is connectionless 
and dispose the decoder immediately after decoding one buffer in 
messageReceived and filterWrite method.  But I'm not sure this is effecient 
enough.

> 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

Reply via email to