Issue #6050 - Use 'decompressed' instead of 'read' as variable name.
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
parent
4e0a42cceb
commit
41ca662155
|
@ -416,10 +416,10 @@ public class PerMessageDeflateExtension extends AbstractExtension
|
||||||
Inflater inflater = getInflater();
|
Inflater inflater = getInflater();
|
||||||
while (true)
|
while (true)
|
||||||
{
|
{
|
||||||
int read = inflater.inflate(payload.array(), payload.arrayOffset() + payload.position(), bufferSize - payload.position());
|
int decompressed = inflater.inflate(payload.array(), payload.arrayOffset() + payload.position(), bufferSize - payload.position());
|
||||||
payload.limit(payload.limit() + read);
|
payload.limit(payload.limit() + decompressed);
|
||||||
if (LOG.isDebugEnabled())
|
if (LOG.isDebugEnabled())
|
||||||
LOG.debug("Decompress: read {} {}", read, toDetail(inflater));
|
LOG.debug("Decompress: read {} {}", decompressed, toDetail(inflater));
|
||||||
|
|
||||||
if (payload.limit() == bufferSize)
|
if (payload.limit() == bufferSize)
|
||||||
{
|
{
|
||||||
|
@ -429,7 +429,7 @@ public class PerMessageDeflateExtension extends AbstractExtension
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (read == 0)
|
if (decompressed == 0)
|
||||||
{
|
{
|
||||||
if (!_tailBytes && _frame.isFin())
|
if (!_tailBytes && _frame.isFin())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue