slide isn't overwriting enough
@@ -182,7 +182,7 @@ private int readFromBuffer(final byte[] b, final int off, final int len) {
}
private void slideBuffer() {
- System.arraycopy(buf, windowSize, buf, 0, windowSize);
+ System.arraycopy(buf, windowSize, buf, 0, windowSize * 2);
writeIndex -= windowSize;
readIndex -= windowSize;
}
