Make the login service's call to the sim time out quicker so we have a

chance to try fallback before the client quits
avinationmerge
Melanie 2011-03-31 15:48:42 +02:00
parent 45548873bd
commit 83c78029e3
2 changed files with 10 additions and 5 deletions

View File

@ -144,7 +144,12 @@ namespace OpenSim.Framework
public static OSDMap PostToService(string url, OSDMap data)
{
return ServiceOSDRequest(url,data,"POST",20000);
return PostToService(url, data, 20000);
}
public static OSDMap PostToService(string url, OSDMap data, int timeout)
{
return ServiceOSDRequest(url,data,"POST", timeout);
}
public static OSDMap GetFromService(string url)

View File

@ -102,7 +102,7 @@ namespace OpenSim.Services.Connectors.Simulation
args["destination_uuid"] = OSD.FromString(destination.RegionID.ToString());
args["teleport_flags"] = OSD.FromString(flags.ToString());
OSDMap result = WebUtil.PostToService(uri,args);
OSDMap result = WebUtil.PostToService(uri, args, 5000);
if (result["Success"].AsBoolean())
return true;