Fix JsonObjectDecoder chunks handling

Issue: SPR-14859
This commit is contained in:
Sebastien Deleuze
2016-10-28 11:25:37 +02:00
parent d59caaa2a7
commit b1030eba3f
2 changed files with 23 additions and 0 deletions

View File

@@ -118,6 +118,7 @@ class JsonObjectDecoder extends AbstractDecoder<DataBuffer> {
this.writerIndex = this.input.writerIndex();
}
else {
this.index = this.index - this.input.readerIndex();
this.input = Unpooled.copiedBuffer(this.input,
Unpooled.copiedBuffer(buffer.asByteBuffer()));
DataBufferUtils.release(buffer);