Skip to content

Commit

Permalink
Adjust receive window to make them linear to the count of streams (so…
Browse files Browse the repository at this point in the history
…lana-labs#33913)

Adjust receive window to make them linear to the count of streams to reduce fragmentations
  • Loading branch information
lijunwangs committed Mar 27, 2024
1 parent 31cca15 commit 27ccc3c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sdk/src/quic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit 27ccc3c

Please sign in to comment.