Increase default buffer size of Gzip deflater to 16K
@@ -38,7 +38,7 @@ import static io.datakernel.common.Preconditions.checkState;
*/
public final class BufsConsumerGzipDeflater extends AbstractCommunicatingProcess
implements WithChannelTransformer<BufsConsumerGzipDeflater, ByteBuf, ByteBuf> {
- public static final int DEFAULT_MAX_BUF_SIZE = 512;
+ public static final int DEFAULT_MAX_BUF_SIZE = 16384;
// rfc 1952 section 2.3.1
private static final byte[] GZIP_HEADER = {(byte) 0x1f, (byte) 0x8b, Deflater.DEFLATED, 0, 0, 0, 0, 0, 0, 0};
private static final int GZIP_FOOTER_SIZE = 8;
