Skip to content

Commit

Permalink
Update staked window instead
Browse files Browse the repository at this point in the history
  • Loading branch information
lijunwangs committed Aug 2, 2023
1 parent 26b9262 commit c9df98a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdk/src/quic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pub const QUIC_MIN_STAKED_CONCURRENT_STREAMS: usize = 128;
pub const QUIC_TOTAL_STAKED_CONCURRENT_STREAMS: usize = 100_000;

// Set the maximum concurrent stream numbers to avoid excessive streams
pub const QUIC_MAX_STAKED_CONCURRENT_STREAMS: usize = 512;
pub const QUIC_MAX_STAKED_CONCURRENT_STREAMS: usize = 2048;

pub const QUIC_MAX_TIMEOUT: Duration = Duration::from_secs(2);
pub const QUIC_KEEP_ALIVE: Duration = Duration::from_secs(1);
Expand All @@ -31,4 +31,4 @@ pub const QUIC_MIN_STAKED_RECEIVE_WINDOW_RATIO: u64 = 2;

/// 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 = 40;

0 comments on commit c9df98a

Please sign in to comment.