How to handle MatchLeave Trigger Time

Tuning those configs may help for your specific issue, but if the socket was actually disconnected (assuming it wasn’t a network issue) the underlying OS network stack should surface disconnection early rather than having to timeout on ping/pong values. The tradeoff is that lowering those configs may reduce tolerance to transient network issues on unstable connections in a production setting. If the tradeoff works well enough in practice then I’m glad you found a solution.