feat(relay): complete Phase 13.1 hardening, port pool scaling, and live load testing

This commit is contained in:
Дмитрий committed 2026-10-09 13:28:32 +05:00
1 parent c743157b97
commit 6e438cfe95
27 files changed
+1320 -222

No files matched your search

+1 -1
View File
@@ -406,7 +406,7 @@ async fn run_player<K: KeyLookup>(hub: Arc<Hub<K>>, mut sock: WebSocket, ip: IpA
let link = Arc::new(Link { tx: ptx, started: Instant::now(), last: Mutex::new(Instant::now()), bytes: AtomicUsize::new(0), answered: AtomicBool::new(false) });
let slot = take_slot(&hub, &entry, &link);
let Some(conn) = slot else { return refuse(&mut sock, ErrorCode::HostBusy, "the realm's Manager is busy").await };
if entry.tx.send(HostMsg::Text(coord::to_text(&Frame::Open { conn }))).await.is_err() {
if entry.tx.send(HostMsg::Text(coord::to_text(&Frame::Open { conn, client_ip: Some(ip.to_string()) }))).await.is_err() {
if let Ok(mut l) = entry.links.lock() {
l.remove(&conn);
}