mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 17:55:48 +08:00
Revert "Added request.Proxy=null everywhere, as discussed in http://stackoverflow.com/questions/2519655/httpwebrequest-is-extremely-slow."
But the patch is here, in case anyone wants to try it.
This reverts commit 531edd51d8.
This commit is contained in:
@@ -386,7 +386,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Concierge
|
||||
updatePost.ContentType = "text/xml";
|
||||
updatePost.ContentLength = payload.Length;
|
||||
updatePost.UserAgent = "OpenSim.Concierge";
|
||||
updatePost.Proxy = null;
|
||||
|
||||
|
||||
BrokerState bs = new BrokerState(uri, payload, updatePost);
|
||||
bs.Timer = new Timer(delegate(object state)
|
||||
|
||||
@@ -541,7 +541,6 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.FreeSwitchVoice
|
||||
forwardreq.Method = method;
|
||||
forwardreq.ContentType = contenttype;
|
||||
forwardreq.KeepAlive = false;
|
||||
forwardreq.Proxy = null;
|
||||
|
||||
if (method == "POST")
|
||||
{
|
||||
|
||||
@@ -1119,7 +1119,6 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice
|
||||
|
||||
// We are sending just parameters, no content
|
||||
req.ContentLength = 0;
|
||||
req.Proxy = null;
|
||||
|
||||
// Send request and retrieve the response
|
||||
rsp = (HttpWebResponse)req.GetResponse();
|
||||
|
||||
@@ -1150,7 +1150,6 @@ namespace Nwc.XmlRpc
|
||||
request.ContentType = "text/xml";
|
||||
request.AllowWriteStreamBuffering = true;
|
||||
request.KeepAlive = !_disableKeepAlive;
|
||||
request.Proxy = null;
|
||||
|
||||
Stream stream = request.GetRequestStream();
|
||||
XmlTextWriter xml = new XmlTextWriter(stream, Encoding.ASCII);
|
||||
|
||||
@@ -280,7 +280,6 @@ namespace OpenSim.Region.OptionalModules.Scripting.RegionReady
|
||||
WebRequest request = WebRequest.Create(m_uri);
|
||||
request.Method = request_method;
|
||||
request.ContentType = content_type;
|
||||
request.Proxy = null;
|
||||
|
||||
Stream os = null;
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user