Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit a1635f3

Browse files
lijunwangswillhickey
authored andcommitted
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
1 parent af0eac1 commit a1635f3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sdk/src/quic.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ pub const QUIC_CONNECTION_HANDSHAKE_TIMEOUT: Duration = Duration::from_secs(60);
2626

2727
/// The receive window for QUIC connection from unstaked nodes is
2828
/// set to this ratio times [`solana_sdk::packet::PACKET_DATA_SIZE`]
29-
pub const QUIC_UNSTAKED_RECEIVE_WINDOW_RATIO: u64 = 1;
29+
pub const QUIC_UNSTAKED_RECEIVE_WINDOW_RATIO: u64 = 128;
3030

3131
/// The receive window for QUIC connection from minimum staked nodes is
3232
/// set to this ratio times [`solana_sdk::packet::PACKET_DATA_SIZE`]
33-
pub const QUIC_MIN_STAKED_RECEIVE_WINDOW_RATIO: u64 = 2;
33+
pub const QUIC_MIN_STAKED_RECEIVE_WINDOW_RATIO: u64 = 128;
3434

3535
/// The receive window for QUIC connection from maximum staked nodes is
3636
/// set to this ratio times [`solana_sdk::packet::PACKET_DATA_SIZE`]
37-
pub const QUIC_MAX_STAKED_RECEIVE_WINDOW_RATIO: u64 = 10;
37+
pub const QUIC_MAX_STAKED_RECEIVE_WINDOW_RATIO: u64 = 512;

0 commit comments

Comments
 (0)