Cancel VPN gateway loops together

This commit is contained in:
2026-05-16 12:29:12 +03:00
parent d170820445
commit da59de7042
3 changed files with 69 additions and 4 deletions
@@ -394,6 +394,9 @@ per-stream maps.
Gateway shutdown now closes all VPN fabric-session stream shards and then the
underlying fabric session, preventing stale logical streams from consuming QUIC
carrier capacity after reconnects or rollout restarts.
Gateway runtime cancellation now fans out to both upload and download loops
when either direction exits, so transport cleanup runs promptly on one-sided
TUN or carrier failures.
Endpoint ranking treats `capacity_limited` observations as a soft pressure
penalty instead of a hard recent failure, enabling load spreading without
marking the carrier unhealthy.