Fixed routing across endpoint refresh

Co-Authored-By: brekotis <93345790+brekotis@users.noreply.github.com>
This commit is contained in:
Alexey
2026-08-23 20:43:22 +03:00
parent 3188c8e417
commit 1a18f2452f
5 changed files with 146 additions and 14 deletions
+4
View File
@@ -21,6 +21,10 @@ impl WebSession {
return;
};
let generation = manager.active_generation();
if !*generation.admission_rx.borrow() {
self.stream_finished(stream_id, peer_port);
return;
}
let Ok(connection_permit) = generation.max_connections.clone().try_acquire_owned() else {
manager.record_stream_rejected();
self.stream_finished(stream_id, peer_port);