aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/WebUtil.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/WebUtil.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Framework/WebUtil.cs b/OpenSim/Framework/WebUtil.cs
index 417e1cf..131ae50 100644
--- a/OpenSim/Framework/WebUtil.cs
+++ b/OpenSim/Framework/WebUtil.cs
@@ -176,7 +176,7 @@ namespace OpenSim.Framework
176 LogOutgoingDetail(string.Format("RESPONSE {0}: ", reqnum), input); 176 LogOutgoingDetail(string.Format("RESPONSE {0}: ", reqnum), input);
177 } 177 }
178 178
179 public static OSDMap ServiceOSDRequest(string url, OSDMap data, string method, int timeout, bool compressed, bool rpc) 179 public static OSDMap ServiceOSDRequest(string url, OSDMap data, string method, int timeout, bool compressed, bool rpc, bool keepalive = false)
180 { 180 {
181 int reqnum = RequestNumber++; 181 int reqnum = RequestNumber++;
182 182
@@ -197,7 +197,7 @@ namespace OpenSim.Framework
197 HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); 197 HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
198 request.Method = method; 198 request.Method = method;
199 request.Timeout = timeout; 199 request.Timeout = timeout;
200 request.KeepAlive = false; 200 request.KeepAlive = keepalive;
201 request.MaximumAutomaticRedirections = 10; 201 request.MaximumAutomaticRedirections = 10;
202 request.ReadWriteTimeout = timeout / 2; 202 request.ReadWriteTimeout = timeout / 2;
203 request.Headers[OSHeaderRequestID] = reqnum.ToString(); 203 request.Headers[OSHeaderRequestID] = reqnum.ToString();