- while (msg.readableBytes() > NetconfMessageFactory.MAX_CHUNK_SIZE) {
- ByteBuf chunk = Unpooled.buffer(NetconfMessageFactory.MAX_CHUNK_SIZE);
- chunk.writeBytes(createChunkHeader(NetconfMessageFactory.MAX_CHUNK_SIZE));
- chunk.writeBytes(msg.readBytes(NetconfMessageFactory.MAX_CHUNK_SIZE));
+ while (msg.readableBytes() > MAX_CHUNK_SIZE) {
+ ByteBuf chunk = Unpooled.buffer(MAX_CHUNK_SIZE);
+ chunk.writeBytes(createChunkHeader(MAX_CHUNK_SIZE));
+ chunk.writeBytes(msg.readBytes(MAX_CHUNK_SIZE));