mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 19:36:07 +08:00
* This update enables grid wide presence updates.
* You'll need to start-up the MessageingServer and set it up. It sets up like any of the other grid servers. * All user presence data is kept in memory for speed, while the agent is online. That means if you shutdown the messaging server or the messaging server crashes, it forgets who's online/offline. * Occasionally the region-cache will get stale if regions move around a lot. if it gets stale, run clear-cache on the messaging server console to clear the region cache.
This commit is contained in:
@@ -31,7 +31,9 @@ using System.Reflection;
|
||||
using libsecondlife;
|
||||
using log4net;
|
||||
using log4net.Config;
|
||||
|
||||
using OpenSim.Framework;
|
||||
using OpenSim.Framework.Communications.Cache;
|
||||
using OpenSim.Framework.Console;
|
||||
using OpenSim.Framework.Servers;
|
||||
|
||||
@@ -88,6 +90,8 @@ namespace OpenSim.Grid.MessagingServer
|
||||
m_log.Info("[REGION]: Starting HTTP process");
|
||||
m_httpServer = new BaseHttpServer(Cfg.HttpPort);
|
||||
|
||||
|
||||
|
||||
msgsvc = new MessageService(Cfg);
|
||||
|
||||
if (msgsvc.registerWithUserServer())
|
||||
@@ -144,6 +148,24 @@ namespace OpenSim.Grid.MessagingServer
|
||||
}
|
||||
}
|
||||
|
||||
public override void RunCmd(string cmd, string[] cmdparams)
|
||||
{
|
||||
base.RunCmd(cmd, cmdparams);
|
||||
|
||||
switch (cmd)
|
||||
{
|
||||
case "help":
|
||||
m_console.Notice("clear-cache - Clears region cache. Should be done when regions change position. The region cache gets stale after a while.");
|
||||
break;
|
||||
case "clear-cache":
|
||||
int entries = msgsvc.ClearRegionCache();
|
||||
m_console.Notice("Region cache cleared! Cleared " + entries.ToString() + " entries");
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override void Shutdown()
|
||||
{
|
||||
msgsvc.deregisterWithUserServer();
|
||||
|
||||
Reference in New Issue
Block a user