WEB: share immutable profiles + decoys across exact host lists

This commit is contained in:
Alexey
2026-10-15 07:05:36 +03:00
parent 05a367259a
commit 831cd0f1a7
51 changed files with 1661 additions and 343 deletions
+4 -4
View File
@@ -342,7 +342,7 @@ impl WebSession {
effects: &mut DeferredSessionEffects,
) -> Option<u16> {
let manager = self.manager.upgrade()?;
if state.active_peer_ports.len() >= self.profile.max_streams_per_session {
if state.active_peer_ports.len() >= self.profile.shared.max_streams_per_session {
manager.record_stream_rejected_reason(
crate::web::telemetry::WebRejectionReason::StreamSessionCapacity,
);
@@ -350,9 +350,9 @@ impl WebSession {
}
let (peer_port, notify) = manager.try_acquire_stream_quiet(
self.profile_key,
self.profile.max_streams,
self.profile.shared.max_streams,
self.client_ip,
self.profile.public_addr,
self.profile.shared.public_addr,
);
if let Some(notify) = notify {
effects.notify(notify);
@@ -364,7 +364,7 @@ impl WebSession {
if let Some(notify) = manager.release_stream_quiet(
self.profile_key,
self.client_ip,
self.profile.public_addr,
self.profile.shared.public_addr,
peer_port,
) {
effects.notify(notify);