Adjust receive window to make them linear to the count of streams (#3… (#595)
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
8545209f67
commit
2199f6e6fc
|
@ -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