Skip to content

Commit

Permalink
Revert "quic: increase timeout and keep alive (#4585)"
Browse files Browse the repository at this point in the history
This reverts commit a1d26ad.
  • Loading branch information
behzadnouri committed Jan 26, 2025
1 parent 4d0fc22 commit 4a4e4aa
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions sdk/quic-definitions/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,8 @@ pub const QUIC_TOTAL_STAKED_CONCURRENT_STREAMS: usize = 100_000;
// forwarded packets from staked nodes.
pub const QUIC_MAX_STAKED_CONCURRENT_STREAMS: usize = 512;

// Connection idle timeout, and keep alive.
// Quic will close the connection after QUIC_MAX_TIMEOUT,
// and send a ping every QUIC_KEEP_ALIVE.
// These shouldn't be too low to avoid unnecessary ping traffic.
pub const QUIC_MAX_TIMEOUT: Duration = Duration::from_secs(60);
pub const QUIC_KEEP_ALIVE: Duration = Duration::from_secs(45);
pub const QUIC_MAX_TIMEOUT: Duration = Duration::from_secs(2);
pub const QUIC_KEEP_ALIVE: Duration = Duration::from_secs(1);

// Disable Quic send fairness.
// When set to false, streams are still scheduled based on priority,
Expand Down

0 comments on commit 4a4e4aa

Please sign in to comment.