Skip to content

Commit

Permalink
make Framing.config use zlib by default
Browse files Browse the repository at this point in the history
  • Loading branch information
c-cube committed Apr 5, 2024
1 parent 68d2d6a commit 11b43ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/framing.ml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ open struct
end

type config = {
use_zlib: bool;
use_zlib: bool; [@default true]
zlib_compression_threshold_B: int; [@default 2 * 1024]
buf_pool: Buf_pool.t;
}
Expand Down
3 changes: 2 additions & 1 deletion src/core/framing.mli
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
open Common_

type config = {
use_zlib: bool; (** Use zlib compression on large messages? *)
use_zlib: bool; [@default true]
(** Use zlib compression on large messages? *)
zlib_compression_threshold_B: int; [@default 2 * 1024]
(** Size of body above which we apply zlib compression. *)
buf_pool: Buf_pool.t;
Expand Down

0 comments on commit 11b43ed

Please sign in to comment.