Trying to make http requests less slow, according to http://stackoverflow.com/questions/2519655/httpwebrequest-is-extremely-slow
parent
cade717b5f
commit
1aa0234408
|
@ -244,6 +244,7 @@ namespace OpenSim.Framework
|
||||||
request.Method = method;
|
request.Method = method;
|
||||||
request.Timeout = timeout;
|
request.Timeout = timeout;
|
||||||
request.KeepAlive = false;
|
request.KeepAlive = false;
|
||||||
|
request.Proxy = null;
|
||||||
request.MaximumAutomaticRedirections = 10;
|
request.MaximumAutomaticRedirections = 10;
|
||||||
request.ReadWriteTimeout = timeout / 4;
|
request.ReadWriteTimeout = timeout / 4;
|
||||||
request.Headers[OSHeaderRequestID] = reqnum.ToString();
|
request.Headers[OSHeaderRequestID] = reqnum.ToString();
|
||||||
|
@ -449,6 +450,7 @@ namespace OpenSim.Framework
|
||||||
request.Method = "POST";
|
request.Method = "POST";
|
||||||
request.Timeout = timeout;
|
request.Timeout = timeout;
|
||||||
request.KeepAlive = false;
|
request.KeepAlive = false;
|
||||||
|
request.Proxy = null;
|
||||||
request.MaximumAutomaticRedirections = 10;
|
request.MaximumAutomaticRedirections = 10;
|
||||||
request.ReadWriteTimeout = timeout / 4;
|
request.ReadWriteTimeout = timeout / 4;
|
||||||
request.Headers[OSHeaderRequestID] = reqnum.ToString();
|
request.Headers[OSHeaderRequestID] = reqnum.ToString();
|
||||||
|
|
Loading…
Reference in New Issue