Changed Simian ping timeout to 60 seconds instead of 10.

Removed unnecessary references to System.Threading.
Fixed missing i++ in UUIDNameReply response loop.
Added preliminary support for friendships (still needs to reference the proper calling card folder)

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2230 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
2008-09-21 18:10:17 +00:00
parent 8876dd9363
commit cbf46e562e
4 changed files with 117 additions and 4 deletions

View File

@@ -418,8 +418,8 @@ namespace Simian
dropAck.Add(outgoing.Packet.Header.Sequence);
//Disconnect an agent if no packets are received for some time
//TODO: Send logout packet? Also, 10000 should be a setting somewhere.
if (Environment.TickCount - client.Agent.TickLastPacketReceived > 10000)
//TODO: Send logout packet? Also, 60000 should be a setting somewhere.
if (Environment.TickCount - client.Agent.TickLastPacketReceived > 60000)
{
Logger.Log(String.Format("Ack timeout for {0}, disconnecting", client.Agent.Avatar.Name), Helpers.LogLevel.Warning);
server.UDP.RemoveClient(client.Agent);