* 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
parent
7071b5082f
commit
3032831859
|
@ -210,7 +210,7 @@ namespace OpenSim.Region.ClientStack
|
||||||
{
|
{
|
||||||
if (packetsReceived == lastPacketsReceived) {
|
if (packetsReceived == lastPacketsReceived) {
|
||||||
probesWithNoIngressPackets++;
|
probesWithNoIngressPackets++;
|
||||||
if (probesWithNoIngressPackets > 120) {
|
if (probesWithNoIngressPackets > 30) {
|
||||||
this.KillClient();
|
this.KillClient();
|
||||||
} else {
|
} else {
|
||||||
// this will normally trigger at least one packet (ping response)
|
// this will normally trigger at least one packet (ping response)
|
||||||
|
@ -227,7 +227,7 @@ namespace OpenSim.Region.ClientStack
|
||||||
|
|
||||||
protected virtual void InitNewClient()
|
protected virtual void InitNewClient()
|
||||||
{
|
{
|
||||||
clientPingTimer = new Timer(1000);
|
clientPingTimer = new Timer(5000);
|
||||||
clientPingTimer.Elapsed += new ElapsedEventHandler(CheckClientConnectivity);
|
clientPingTimer.Elapsed += new ElapsedEventHandler(CheckClientConnectivity);
|
||||||
clientPingTimer.Enabled = true;
|
clientPingTimer.Enabled = true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue