From 3032831859b3360426d74e7eb716c8e522fb9764 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Sun, 29 Jul 2007 13:29:37 +0000 Subject: [PATCH] * Raised ping timeout to 150 seconds * Ping checks are now sent every 5 seconds instead of every one if no other packets are recieved. --- OpenSim/Region/ClientStack/ClientView.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenSim/Region/ClientStack/ClientView.cs b/OpenSim/Region/ClientStack/ClientView.cs index 92d73e1d85..e693c64e90 100644 --- a/OpenSim/Region/ClientStack/ClientView.cs +++ b/OpenSim/Region/ClientStack/ClientView.cs @@ -210,7 +210,7 @@ namespace OpenSim.Region.ClientStack { if (packetsReceived == lastPacketsReceived) { probesWithNoIngressPackets++; - if (probesWithNoIngressPackets > 120) { + if (probesWithNoIngressPackets > 30) { this.KillClient(); } else { // this will normally trigger at least one packet (ping response) @@ -227,7 +227,7 @@ namespace OpenSim.Region.ClientStack protected virtual void InitNewClient() { - clientPingTimer = new Timer(1000); + clientPingTimer = new Timer(5000); clientPingTimer.Elapsed += new ElapsedEventHandler(CheckClientConnectivity); clientPingTimer.Enabled = true;