SPDY: fix improper use of SYNC_FLUSH in SpdyHeaderBlockZlibCompressor
This commit is contained in:
parent
fe09ad36e2
commit
3b1ebf7f10
@ -52,8 +52,9 @@ class SpdyHeaderBlockZlibCompressor extends SpdyHeaderBlockCompressor {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void encode(ChannelBuffer compressed) {
|
public void encode(ChannelBuffer compressed) {
|
||||||
while (!compressor.needsInput()) {
|
int numBytes = out.length;
|
||||||
int numBytes = compressor.deflate(out, 0, out.length, Deflater.SYNC_FLUSH);
|
while (numBytes == out.length) {
|
||||||
|
numBytes = compressor.deflate(out, 0, out.length, Deflater.SYNC_FLUSH);
|
||||||
compressed.writeBytes(out, 0, numBytes);
|
compressed.writeBytes(out, 0, numBytes);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user