From 0ae9ec442687329d91ab5d88b9aa0f67fa203141 Mon Sep 17 00:00:00 2001 From: Simon Cruanes Date: Fri, 10 Dec 2021 11:42:52 -0500 Subject: [PATCH] feat(camlzip): change default buffer size to 16kb --- src/camlzip/Tiny_httpd_camlzip.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/camlzip/Tiny_httpd_camlzip.ml b/src/camlzip/Tiny_httpd_camlzip.ml index d4730f59..c9ae50c0 100644 --- a/src/camlzip/Tiny_httpd_camlzip.ml +++ b/src/camlzip/Tiny_httpd_camlzip.ml @@ -196,7 +196,7 @@ let cb_encode_compressed_stream let setup ?(compress_above=500*1024) - ?(buf_size=48 * 1_024) (server:S.t) : unit = + ?(buf_size=16 * 1_024) (server:S.t) : unit = let buf_size = max buf_size 1_024 in S._debug (fun k->k "setup gzip support (buf-size %d)" buf_size); S.add_decode_request_cb server (cb_decode_compressed_stream ~buf_size);