Fix out of memory problem produced by XMPPDecoder

Description

XMPPDecoder#doDecode will return false if content in the byte buffer is < 4. MINA will then keep the "incomplete" content in a ByteBuffer associated to the session. This is the typical case with heartbeats. The outcome oft his problem is an OOM when lots of session are doing the same thing.

A heap dump will show a huge number of SimpleByteBufferAllocator$SimpleByteBuffer instances.

Environment

None

Activity

Show:
Gaston Dombiak
June 23, 2007, 2:08 AM

Moving to 3.3.2

Fixed
Your pinned fields
Click on the next to a field label to start pinning.

Assignee

Gaston Dombiak

Reporter

Gaston Dombiak