aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/ClientView.cs
diff options
context:
space:
mode:
authorAdam Frisby2007-07-29 13:29:37 +0000
committerAdam Frisby2007-07-29 13:29:37 +0000
commit3032831859b3360426d74e7eb716c8e522fb9764 (patch)
tree18a1fa3a0fe4a5bad58c0b0f0b678a7bf29a6ceb /OpenSim/Region/ClientStack/ClientView.cs
parent* Fixed an issue whereby DB4o was loading agents incorrectly (multiple logins... (diff)
downloadopensim-SC-3032831859b3360426d74e7eb716c8e522fb9764.zip
opensim-SC-3032831859b3360426d74e7eb716c8e522fb9764.tar.gz
opensim-SC-3032831859b3360426d74e7eb716c8e522fb9764.tar.bz2
opensim-SC-3032831859b3360426d74e7eb716c8e522fb9764.tar.xz
* Raised ping timeout to 150 seconds
* Ping checks are now sent every 5 seconds instead of every one if no other packets are recieved.
Diffstat (limited to 'OpenSim/Region/ClientStack/ClientView.cs')
-rw-r--r--OpenSim/Region/ClientStack/ClientView.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/ClientStack/ClientView.cs b/OpenSim/Region/ClientStack/ClientView.cs
index 92d73e1..e693c64 100644
--- a/OpenSim/Region/ClientStack/ClientView.cs
+++ b/OpenSim/Region/ClientStack/ClientView.cs
@@ -210,7 +210,7 @@ namespace OpenSim.Region.ClientStack
210 { 210 {
211 if (packetsReceived == lastPacketsReceived) { 211 if (packetsReceived == lastPacketsReceived) {
212 probesWithNoIngressPackets++; 212 probesWithNoIngressPackets++;
213 if (probesWithNoIngressPackets > 120) { 213 if (probesWithNoIngressPackets > 30) {
214 this.KillClient(); 214 this.KillClient();
215 } else { 215 } else {
216 // this will normally trigger at least one packet (ping response) 216 // this will normally trigger at least one packet (ping response)
@@ -227,7 +227,7 @@ namespace OpenSim.Region.ClientStack
227 227
228 protected virtual void InitNewClient() 228 protected virtual void InitNewClient()
229 { 229 {
230 clientPingTimer = new Timer(1000); 230 clientPingTimer = new Timer(5000);
231 clientPingTimer.Elapsed += new ElapsedEventHandler(CheckClientConnectivity); 231 clientPingTimer.Elapsed += new ElapsedEventHandler(CheckClientConnectivity);
232 clientPingTimer.Enabled = true; 232 clientPingTimer.Enabled = true;
233 233