* Raised ping timeout to 150 seconds

* Ping checks are now sent every 5 seconds instead of every one if no other packets are recieved.
afrisby
Adam Frisby 2007-07-29 13:29:37 +00:00
parent 7071b5082f
commit 3032831859
1 changed files with 2 additions and 2 deletions

View File

@ -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;