Fixed a regression while cleaning up Redis codec
This commit is contained in:
parent
3e1a055f36
commit
2c3fef467a
@ -55,7 +55,8 @@ public class RedisReplyDecoder extends ReplayingDecoder<VoidEnum> {
|
||||
}
|
||||
|
||||
ChannelBuffer bytes = ChannelBuffers.buffer(size);
|
||||
is.readBytes(bytes);
|
||||
is.readBytes(bytes, 0, size);
|
||||
bytes.writerIndex(size);
|
||||
int cr = is.readByte();
|
||||
int lf = is.readByte();
|
||||
if (cr != CR || lf != LF) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user