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
This commit is contained in:
parent
d1d4c1c654
commit
aa991b6ab7
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue