Skip to main content

DEFAULT_MAX_IDLE_TIMEOUT

Constant DEFAULT_MAX_IDLE_TIMEOUT 

Source
pub const DEFAULT_MAX_IDLE_TIMEOUT: u64 = 60;
Expand description

Default QUIC idle timeout, in seconds.

Deliberately longer than a typical relay’s 30s UDP conntrack entry, so that the keep-alive below — not the timeout — decides connection liveness.

Not the value in force on its own: RFC 9000 §10.1 makes the effective idle timeout the minimum of what the two endpoints advertise, and Surge advertises max_idle_timeout = 30,000 ms. So the production link times out at 30s however high this is set, which is still comfortably above the keep-alive.