Issue Details (XML | Word | Printable)

Key: DIRMINA-90
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Trustin Lee
Reporter: Trustin Lee
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
MINA

Provide a way to release resources for ProtocolEncoder and ProtocolDecoder

Created: 20/Sep/05 07:56 AM   Updated: 18/Oct/05 01:37 AM
Return to search
Component/s: None
Affects Version/s: 0.7.0
Fix Version/s: 0.9.0

Time Tracking:
Not Specified

Resolution Date: 18/Oct/05 01:37 AM


 Description  « Hide
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.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Repository Revision Date User Message
ASF #325917 Mon Oct 17 15:56:31 UTC 2005 trustin Resolved issue: DIRMINA-90 - Provide a way to release resources for ProtocolEncoder and ProtocolDecoder
* Now all encoders and decoders are disposed whenever one message is encoded or decoded in stateless transport types.
Files Changed
MODIFY /directory/network/trunk/src/java/org/apache/mina/filter/codec/ProtocolCodecFilter.java