Skip to content

Commit b2192e5

Browse files
committed
Lower default idle timeout to 60s
Fixes #71.
1 parent 23b3588 commit b2192e5

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

crates/slipstream-server/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ struct Args {
4141
domains: Vec<String>,
4242
#[arg(long = "max-connections", default_value_t = 256, value_parser = parse_max_connections)]
4343
max_connections: u32,
44-
#[arg(long = "idle-timeout-seconds", default_value_t = 1200)]
44+
#[arg(long = "idle-timeout-seconds", default_value_t = 60)]
4545
idle_timeout_seconds: u64,
4646
#[arg(long = "debug-streams")]
4747
debug_streams: bool,

docs/config.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ certificates are not verified.
4747
- `--max-connections`
4848
Caps concurrent QUIC connections and sizes internal connection tables (default: 256).
4949
- `--idle-timeout-seconds`
50-
Closes idle QUIC connections after the given number of seconds (default: 1200).
50+
Closes idle QUIC connections after the given number of seconds (default: 60).
5151
Set to 0 to disable idle GC.
5252
- `--reset-seed`
5353
Path to a 32-hex-char (16-byte) stateless reset seed. If the file does not

docs/usage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Common flags:
6464
- --target-address <HOST:PORT> (default: 127.0.0.1:5201)
6565
- --max-connections <COUNT> (default: 256; caps concurrent QUIC connections)
6666
- --fallback <HOST:PORT> (optional; forward non-DNS packets to this UDP endpoint)
67-
- --idle-timeout-seconds <SECONDS> (default: 1200; set to 0 to disable)
67+
- --idle-timeout-seconds <SECONDS> (default: 60; set to 0 to disable)
6868
- --reset-seed <PATH> (optional; 32 hex chars / 16 bytes; auto-created if missing)
6969
- When binding to ::, slipstream attempts to enable dual-stack (IPV6_V6ONLY=0); if your OS disallows it, IPv4 DNS clients require sysctl changes or binding to an IPv4 address.
7070
- With --fallback enabled, peers that have recently sent DNS stay DNS-only; while active they switch to fallback only after 16 consecutive non-DNS packets to avoid diverting DNS on stray traffic. DNS-only classification expires after an idle timeout without DNS traffic.

0 commit comments

Comments
 (0)