mirror of
https://github.com/Corfirean/coa-server-manager.git
synced 2026-11-25 19:25:56 +00:00
feat(relay): complete Phase 13.1 hardening, port pool scaling, and live load testing
This commit is contained in:
1 parent
c743157b97
commit
6e438cfe95
27 files changed
+1320
-222
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user