netty/netty — pull request #45 by sunng87 (2011-11-07 05:44:13+00:00)
Title: Fix NETTY-452, add an option for whether to count length field into packet length or not

For some protocols (such as Diameter Protocol), the value of length field means the whole packet size. LengthFieldOffset and LengthFieldLength are counted into that. It conflicts with current LengthFieldBasedFrameDecoder impl. And also I find it difficult to subclass it to add this modification (fields are private, no accessors, decode is rather big). So I think it's better to provide the new option to LengthFieldBasedFrameDecoder.