Dungeon fixes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user