Hi,

In the class ProtocolCodecFilter there is a  specific check to handle
exception of type RecoverableProtocolDecoderException -

                if (!(t instanceof RecoverableProtocolDecoderException) ||
(in.position() == oldPos)) {
                    break;
                }

This allows us to continue if a malformed message was received which we
wish to discard. I was wondering if it would also be a good idea to have
a similar check within the CumulativeProtocolDecoder class as well? Today,
if an a RecoverableProtocolDecoderException is thrown by subclass of the
CumulativeProtocolDecoder (from the doDecode method) and if the session
buffer is not empty, then it leaves the session buffer at the same position
where it started off causing the same message to read repeatedly.



-- 
Raghavendra Balgi
Bangalore

Reply via email to