mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 17:32:42 +08:00
Change the timeout on WebUtil to 20s to help make more tps succeed
This commit is contained in:
@@ -138,17 +138,17 @@ namespace OpenSim.Framework
|
||||
/// </summary>
|
||||
public static OSDMap PutToService(string url, OSDMap data)
|
||||
{
|
||||
return ServiceOSDRequest(url,data,"PUT",10000);
|
||||
return ServiceOSDRequest(url,data,"PUT",20000);
|
||||
}
|
||||
|
||||
public static OSDMap PostToService(string url, OSDMap data)
|
||||
{
|
||||
return ServiceOSDRequest(url,data,"POST",10000);
|
||||
return ServiceOSDRequest(url,data,"POST",20000);
|
||||
}
|
||||
|
||||
public static OSDMap GetFromService(string url)
|
||||
{
|
||||
return ServiceOSDRequest(url,null,"GET",10000);
|
||||
return ServiceOSDRequest(url,null,"GET",20000);
|
||||
}
|
||||
|
||||
public static OSDMap ServiceOSDRequest(string url, OSDMap data, string method, int timeout)
|
||||
@@ -275,7 +275,7 @@ namespace OpenSim.Framework
|
||||
/// </summary>
|
||||
public static OSDMap PostToService(string url, NameValueCollection data)
|
||||
{
|
||||
return ServiceFormRequest(url,data,10000);
|
||||
return ServiceFormRequest(url,data,20000);
|
||||
}
|
||||
|
||||
public static OSDMap ServiceFormRequest(string url, NameValueCollection data, int timeout)
|
||||
|
||||
Reference in New Issue
Block a user