Increased the timeouts here too. They were very low.
parent
87eb46b965
commit
cd24fe6331
|
@ -142,17 +142,17 @@ namespace OpenSim.Framework
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static OSDMap PutToService(string url, OSDMap data)
|
public static OSDMap PutToService(string url, OSDMap data)
|
||||||
{
|
{
|
||||||
return ServiceOSDRequest(url,data,"PUT",10000);
|
return ServiceOSDRequest(url,data,"PUT",30000);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static OSDMap PostToService(string url, OSDMap data)
|
public static OSDMap PostToService(string url, OSDMap data)
|
||||||
{
|
{
|
||||||
return ServiceOSDRequest(url,data,"POST",10000);
|
return ServiceOSDRequest(url,data,"POST",30000);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static OSDMap GetFromService(string url)
|
public static OSDMap GetFromService(string url)
|
||||||
{
|
{
|
||||||
return ServiceOSDRequest(url,null,"GET",10000);
|
return ServiceOSDRequest(url,null,"GET",30000);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static OSDMap ServiceOSDRequest(string url, OSDMap data, string method, int timeout)
|
public static OSDMap ServiceOSDRequest(string url, OSDMap data, string method, int timeout)
|
||||||
|
@ -171,7 +171,7 @@ namespace OpenSim.Framework
|
||||||
request.Timeout = timeout;
|
request.Timeout = timeout;
|
||||||
request.KeepAlive = false;
|
request.KeepAlive = false;
|
||||||
request.MaximumAutomaticRedirections = 10;
|
request.MaximumAutomaticRedirections = 10;
|
||||||
request.ReadWriteTimeout = timeout / 4;
|
request.ReadWriteTimeout = timeout * 4;
|
||||||
request.Headers[OSHeaderRequestID] = reqnum.ToString();
|
request.Headers[OSHeaderRequestID] = reqnum.ToString();
|
||||||
|
|
||||||
// If there is some input, write it into the request
|
// If there is some input, write it into the request
|
||||||
|
|
Loading…
Reference in New Issue