Skip to content

Commit

Permalink
Fix issue jetty#5499
Browse files Browse the repository at this point in the history
this PR let the ByteAccumulator recyclable. after invoke ByteAccumulator.transferTo method
we can invoke ByteAccumulator.recycle method to reuse byte[] via ByteAccumulator.newByteArray method

Signed-off-by: Baoyi <chen.bao.yi@qq.com>
  • Loading branch information
leonchen83 committed Oct 28, 2020
1 parent 103653f commit f0273e2
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -211,7 +211,7 @@ protected void decompress(ByteAccumulator accumulator, ByteBuffer buf) throws Da
read = inflater.inflate(output);
if (read <= 0)
{
if (read == 0 && LOG.isDebugEnabled())
if (LOG.isDebugEnabled())
LOG.debug("Decompress: read 0 {}", toDetail(inflater));
break;
}
Expand Down

0 comments on commit f0273e2

Please sign in to comment.