b8ae95a911
The relay now keeps a shared room registry behind the QUIC endpoint and runs an accept loop instead of only binding the socket. Each accepted connection must open its first bidirectional control stream with a hello frame; the relay joins the room registry and replies with welcome or reject. Admission clamps the hello datagram budget to Quinn's negotiated peer datagram size before choosing the effective room MTU, so room state is based on what the connection can actually carry. Accepted peers remain present until the QUIC connection closes, then the relay removes them through the existing leave cleanup path. The development self-signed certificate helper now exposes the certificate to tests so a loopback Quinn client can trust the relay and exercise the real stream codec path. Test Plan: - cargo fmt --check - cargo test --workspace - cargo clippy --workspace --all-targets -- -D warnings Refs: PLAN.md relay QUIC control-stream startup flow
29 lines
714 B
TOML
29 lines
714 B
TOML
[workspace]
|
|
resolver = "3"
|
|
members = [
|
|
"crates/lanparty-client-core",
|
|
"crates/lanparty-client-win",
|
|
"crates/lanparty-ctrl",
|
|
"crates/lanparty-gateway",
|
|
"crates/lanparty-obs",
|
|
"crates/lanparty-proto",
|
|
"crates/lanparty-relay",
|
|
]
|
|
|
|
[workspace.package]
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
|
|
[workspace.dependencies]
|
|
anyhow = "1"
|
|
bytes = "1"
|
|
clap = { version = "4.6.1", features = ["derive"] }
|
|
quinn = "0.11.9"
|
|
rcgen = "0.14.8"
|
|
rustls = { version = "0.23", default-features = false, features = ["ring", "std"] }
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
thiserror = "2"
|
|
tokio = { version = "1.52.3", features = ["macros", "rt-multi-thread", "signal", "sync", "time"] }
|
|
tracing = "0.1"
|