Thank you very much, Diva for a patch to increase the
grid server reliability.ThreadPoolClientBranch
parent
9e828ab168
commit
df04345e3f
|
@ -680,14 +680,17 @@ namespace OpenSim.Grid.GridServer
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="request"></param>
|
/// <param name="request"></param>
|
||||||
/// <param name="path"></param>
|
/// <param name="path"></param>
|
||||||
/// <param name="param"></param>
|
/// <param name="param">A string representing the sim's UUID</param>
|
||||||
/// <returns>Information about the sim in XML</returns>
|
/// <returns>Information about the sim in XML</returns>
|
||||||
public string RestGetSimMethod(string request, string path, string param)
|
public string RestGetSimMethod(string request, string path, string param)
|
||||||
{
|
{
|
||||||
string respstring = String.Empty;
|
string respstring = String.Empty;
|
||||||
|
|
||||||
RegionProfileData TheSim;
|
RegionProfileData TheSim;
|
||||||
LLUUID UUID = new LLUUID(param);
|
|
||||||
|
LLUUID UUID;
|
||||||
|
if (LLUUID.TryParse(param, out UUID))
|
||||||
|
{
|
||||||
TheSim = getRegion(UUID);
|
TheSim = getRegion(UUID);
|
||||||
|
|
||||||
if (!(TheSim == null))
|
if (!(TheSim == null))
|
||||||
|
@ -705,6 +708,13 @@ namespace OpenSim.Grid.GridServer
|
||||||
respstring += "</sim>";
|
respstring += "</sim>";
|
||||||
respstring += "</Root>";
|
respstring += "</Root>";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
respstring = "<Root>";
|
||||||
|
respstring += "<error>Param must be a UUID</error>";
|
||||||
|
respstring += "</Root>";
|
||||||
|
}
|
||||||
|
|
||||||
return respstring;
|
return respstring;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue