Merge branch 'master' of ssh://opensimulator.org/var/git/opensim
commit
a76a1afda8
|
@ -238,7 +238,7 @@ namespace OpenSim.Framework.Servers
|
|||
List<Thread> threads = ThreadTracker.GetThreads();
|
||||
if (threads == null)
|
||||
{
|
||||
sb.Append("Thread tracking is only enabled in DEBUG mode.");
|
||||
sb.Append("OpenSim thread tracking is only enabled in DEBUG mode.");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -264,6 +264,12 @@ namespace OpenSim.Framework.Servers
|
|||
}
|
||||
}
|
||||
}
|
||||
int workers = 0, ports = 0, maxWorkers = 0, maxPorts = 0;
|
||||
ThreadPool.GetAvailableThreads(out workers, out ports);
|
||||
ThreadPool.GetMaxThreads(out maxWorkers, out maxPorts);
|
||||
|
||||
sb.Append(Environment.NewLine + "*** ThreadPool threads ***" + Environment.NewLine);
|
||||
sb.Append("workers: " + (maxWorkers - workers) + " (" + maxWorkers + "); ports: " + (maxPorts - ports) + " (" + maxPorts + ")" + Environment.NewLine);
|
||||
|
||||
return sb.ToString();
|
||||
}
|
||||
|
|
|
@ -67,43 +67,50 @@ namespace OpenSim.Server.Handlers.Grid
|
|||
|
||||
//m_log.DebugFormat("[XXX]: query String: {0}", body);
|
||||
|
||||
Dictionary<string, string> request =
|
||||
ServerUtils.ParseQueryString(body);
|
||||
|
||||
if (!request.ContainsKey("METHOD"))
|
||||
return FailureResult();
|
||||
|
||||
string method = request["METHOD"];
|
||||
|
||||
switch (method)
|
||||
try
|
||||
{
|
||||
case "register":
|
||||
return Register(request);
|
||||
Dictionary<string, string> request =
|
||||
ServerUtils.ParseQueryString(body);
|
||||
|
||||
case "deregister":
|
||||
return Deregister(request);
|
||||
if (!request.ContainsKey("METHOD"))
|
||||
return FailureResult();
|
||||
|
||||
case "get_neighbours":
|
||||
return GetNeighbours(request);
|
||||
string method = request["METHOD"];
|
||||
|
||||
case "get_region_by_uuid":
|
||||
return GetRegionByUUID(request);
|
||||
switch (method)
|
||||
{
|
||||
case "register":
|
||||
return Register(request);
|
||||
|
||||
case "get_region_by_position":
|
||||
return GetRegionByPosition(request);
|
||||
case "deregister":
|
||||
return Deregister(request);
|
||||
|
||||
case "get_region_by_name":
|
||||
return GetRegionByName(request);
|
||||
case "get_neighbours":
|
||||
return GetNeighbours(request);
|
||||
|
||||
case "get_regions_by_name":
|
||||
return GetRegionsByName(request);
|
||||
case "get_region_by_uuid":
|
||||
return GetRegionByUUID(request);
|
||||
|
||||
case "get_region_range":
|
||||
return GetRegionRange(request);
|
||||
case "get_region_by_position":
|
||||
return GetRegionByPosition(request);
|
||||
|
||||
case "get_region_by_name":
|
||||
return GetRegionByName(request);
|
||||
|
||||
case "get_regions_by_name":
|
||||
return GetRegionsByName(request);
|
||||
|
||||
case "get_region_range":
|
||||
return GetRegionRange(request);
|
||||
|
||||
}
|
||||
m_log.DebugFormat("[GRID HANDLER]: unknown method {0} request {1}", method.Length, method);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
m_log.DebugFormat("[GRID HANDLER]: Exception {0}", e);
|
||||
}
|
||||
|
||||
m_log.DebugFormat("[GRID HANDLER]: unknown method {0} request {1}", method.Length, method);
|
||||
return FailureResult();
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue