Fix reliability findings

This commit is contained in:
Joseph Doherty
2026-04-28 06:27:01 -04:00
parent 907aa49aea
commit b0041c5d18
9 changed files with 233 additions and 21 deletions
@@ -101,6 +101,17 @@ public sealed class GatewayMetrics : IDisposable
_sessionsClosedCounter.Add(1);
}
public void SessionRemoved()
{
lock (_syncRoot)
{
if (_openSessions > 0)
{
_openSessions--;
}
}
}
public void WorkerStarted(TimeSpan startupDuration)
{
lock (_syncRoot)