diff --git a/src/main/java/org/jboss/netty/handler/codec/frame/LengthFieldBasedFrameDecoder.java b/src/main/java/org/jboss/netty/handler/codec/frame/LengthFieldBasedFrameDecoder.java index 694cbbad07..e04b326988 100644 --- a/src/main/java/org/jboss/netty/handler/codec/frame/LengthFieldBasedFrameDecoder.java +++ b/src/main/java/org/jboss/netty/handler/codec/frame/LengthFieldBasedFrameDecoder.java @@ -98,10 +98,10 @@ import org.jboss.netty.channel.ChannelHandlerContext; * strip the first header field and the length field, the length field * includes the header length *
- * lengthFieldOffset = 1 - * lengthFieldLength = 2 + * lengthFieldOffset = 1 + * lengthFieldLength = 2 * lengthAdjustment = -3 (= the length of HDR1 + LEN, negative) - * initialBytesToStrip = 3 + * initialBytesToStrip = 3 * * BEFORE DECODE (16 bytes) AFTER DECODE (13 bytes) * +------+--------+------+----------------+ +------+----------------+