solana_sdk/
quic.rs

1pub const QUIC_PORT_OFFSET: u16 = 6;
2// Empirically found max number of concurrent streams
3// that seems to maximize TPS on GCE (higher values don't seem to
4// give significant improvement or seem to impact stability)
5pub const QUIC_MAX_UNSTAKED_CONCURRENT_STREAMS: usize = 128;
6pub const QUIC_MIN_STAKED_CONCURRENT_STREAMS: usize = 128;
7
8pub const QUIC_MAX_TIMEOUT_MS: u32 = 2_000;
9pub const QUIC_KEEP_ALIVE_MS: u64 = 1_000;
10
11// Based on commonly-used handshake timeouts for various TCP
12// applications. Different applications vary, but most seem to
13// be in the 30-60 second range
14pub const QUIC_CONNECTION_HANDSHAKE_TIMEOUT_MS: u64 = 60_000;