revert SynchronousRestObjectRequester timeout to miliseconds, and fix where it was wrong set in seconds
parent
5e12bc452d
commit
b93412972e
|
@ -1246,7 +1246,7 @@ namespace OpenSim.Framework
|
|||
auth.AddAuthorization(ht.Headers);
|
||||
|
||||
if (pTimeout != 0)
|
||||
request.Timeout = pTimeout * 1000;
|
||||
request.Timeout = pTimeout;
|
||||
|
||||
if (maxConnections > 0 && ht.ServicePoint.ConnectionLimit < maxConnections)
|
||||
ht.ServicePoint.ConnectionLimit = maxConnections;
|
||||
|
|
|
@ -322,7 +322,7 @@ namespace OpenSim.Services.Connectors
|
|||
bool success = false;
|
||||
try
|
||||
{
|
||||
AssetBase a = SynchronousRestObjectRequester.MakeRequest<int, AssetBase>("GET", uri, 0, 30);
|
||||
AssetBase a = SynchronousRestObjectRequester.MakeRequest<int, AssetBase>("GET", uri, 0, 30000);
|
||||
if (a != null)
|
||||
{
|
||||
if (m_Cache != null)
|
||||
|
@ -481,7 +481,7 @@ namespace OpenSim.Services.Connectors
|
|||
try
|
||||
{
|
||||
newID = SynchronousRestObjectRequester.
|
||||
MakeRequest<AssetBase, string>("POST", uri, asset, 100);
|
||||
MakeRequest<AssetBase, string>("POST", uri, asset, 100000);
|
||||
if (newID == null || newID == "")
|
||||
{
|
||||
newID = UUID.Zero.ToString();
|
||||
|
|
Loading…
Reference in New Issue