From a1635f30c8f5e6542f094efa860e0dafe314ef2c Mon Sep 17 00:00:00 2001 From: Lijun Wang <83639177+lijunwangs@users.noreply.github.com> Date: Fri, 5 Apr 2024 13:35:27 -0700 Subject: [PATCH] =?UTF-8?q?Adjust=20receive=20window=20to=20make=20them=20?= =?UTF-8?q?linear=20to=20the=20count=20of=20streams=20(#3=E2=80=A6=20(#595?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adjust receive window to make them linear to the count of streams (#33913) Adjust receive window to make them linear to the count of streams to reduce fragmentations --- sdk/src/quic.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sdk/src/quic.rs b/sdk/src/quic.rs index dd75efccf7..d304d8fe6c 100644 --- a/sdk/src/quic.rs +++ b/sdk/src/quic.rs @@ -26,12 +26,12 @@ pub const QUIC_CONNECTION_HANDSHAKE_TIMEOUT: Duration = Duration::from_secs(60); /// The receive window for QUIC connection from unstaked nodes is /// set to this ratio times [`solana_sdk::packet::PACKET_DATA_SIZE`] -pub const QUIC_UNSTAKED_RECEIVE_WINDOW_RATIO: u64 = 1; +pub const QUIC_UNSTAKED_RECEIVE_WINDOW_RATIO: u64 = 128; /// The receive window for QUIC connection from minimum staked nodes is /// set to this ratio times [`solana_sdk::packet::PACKET_DATA_SIZE`] -pub const QUIC_MIN_STAKED_RECEIVE_WINDOW_RATIO: u64 = 2; +pub const QUIC_MIN_STAKED_RECEIVE_WINDOW_RATIO: u64 = 128; /// The receive window for QUIC connection from maximum staked nodes is /// set to this ratio times [`solana_sdk::packet::PACKET_DATA_SIZE`] -pub const QUIC_MAX_STAKED_RECEIVE_WINDOW_RATIO: u64 = 10; +pub const QUIC_MAX_STAKED_RECEIVE_WINDOW_RATIO: u64 = 512;