Thanks Emmanuel for your quick reply!

Yes, we know the 1.1.8 has not been supported for long time, I just want
you confirm my thought.

BTW, I checked the new 2.0.9 version, it has the similar code and I think
it has the same potential issues.

Here is the 2.0.9's code:

if (isInboundDone()) {
            // Rewind the MINA buffer if not all data is processed and
inbound
            // is finished.
            int inNetBufferPosition = inNetBuffer == null ? 0 :
inNetBuffer.position();
            buf.position(buf.position() - inNetBufferPosition);

            if (inNetBuffer != null) {
                inNetBuffer.free();
                inNetBuffer = null;
            }
        }

In some case, the 'inNetBufferPosition' can be larger than buf.position().


Thanks,
James




On 6/15/15, 5:18 PM, "Emmanuel Lécharny" <[email protected]> wrote:

>Le 15/06/15 23:53, James Xu a écrit :
>> Dear Mina Developer,
>>
>> We are using Mina(1.1.8) and Openfire for our project. Recently with
>>heavy load to the server, we got following exception in server side:
>
>I'm sorry, but MINA 1.1 is not maintained anymore for more than 5 years
>now.
>
>I would suggest you to switch to MINA 2.0.9, or to eventually fix the
>code and build your own jar.
>

Reply via email to