From abf28d875ec67bf2caecb77ea6c6cf69846856dc Mon Sep 17 00:00:00 2001 From: 4JX <79868816+4JX@users.noreply.github.com> Date: Wed, 17 Aug 2022 19:11:14 +0200 Subject: [PATCH] Disable the default frame --- src/proto/h2/client.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/proto/h2/client.rs b/src/proto/h2/client.rs index 69223210..150b5359 100644 --- a/src/proto/h2/client.rs +++ b/src/proto/h2/client.rs @@ -36,7 +36,7 @@ type ConnEof = oneshot::Receiver; // for performance. const DEFAULT_CONN_WINDOW: u32 = 1024 * 1024 * 5; // 5mb const DEFAULT_STREAM_WINDOW: u32 = 1024 * 1024 * 2; // 2mb -const DEFAULT_MAX_FRAME_SIZE: u32 = 1024 * 16; // 16kb +// const DEFAULT_MAX_FRAME_SIZE: u32 = 1024 * 16; // 16kb const DEFAULT_MAX_SEND_BUF_SIZE: usize = 1024 * 1024; // 1mb #[derive(Clone, Debug)] @@ -65,7 +65,7 @@ impl Default for Config { adaptive_window: false, initial_conn_window_size: DEFAULT_CONN_WINDOW, initial_stream_window_size: DEFAULT_STREAM_WINDOW, - max_frame_size: Some(DEFAULT_MAX_FRAME_SIZE), + max_frame_size: None, #[cfg(feature = "runtime")] keep_alive_interval: None, #[cfg(feature = "runtime")]