Dungeon fixes

This commit is contained in:
dingo
2026-02-09 07:46:13 -05:00
parent 469f1976bd
commit fb17d1c16b
3 changed files with 66 additions and 18 deletions
+3 -3
View File
@@ -52,11 +52,11 @@ public sealed class NetworkManager
: 20;
_tickInterval = TimeSpan.FromMilliseconds(1000.0 / tickHz);
// Parse idle timeout from environment variable (default: 90 seconds to allow for ping delays)
// Parse idle timeout from environment variable (default: 5 minutes)
_idleTimeout = TimeSpan.FromSeconds(
int.TryParse(Environment.GetEnvironmentVariable("IDLE_TIMEOUT_S"), out var idle)
? Math.Clamp(idle, 10, 300)
: 90
? Math.Clamp(idle, 300, 1800)
: 300
);
// Ping interval should be less than half of idle timeout to ensure keepalive