In SynchronousRestObjectRequester.MakeRequest<TRequest, TResponse>(string verb, string requestUrl, TRequest obj, int pTimeout, int maxConnections) actually set timeout on WebRequest if given.

Previously, we were doing nothing with this parameter.
No effect on current code since none of the 6 callers attempt to use the timeout.
This commit is contained in:
Justin Clark-Casey (justincc)
2014-05-12 19:20:00 +01:00
parent bf8f64e40e
commit faf9ba53fc

View File

@@ -1116,6 +1116,8 @@ namespace OpenSim.Framework
WebRequest request = WebRequest.Create(requestUrl);
HttpWebRequest ht = (HttpWebRequest)request;
ht.Timeout = pTimeout;
if (maxConnections > 0 && ht.ServicePoint.ConnectionLimit < maxConnections)
ht.ServicePoint.ConnectionLimit = maxConnections;