aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Servers/HttpServer/OSHttpResponse.cs
diff options
context:
space:
mode:
authorTeravus Ovares2009-07-29 20:32:54 +0000
committerTeravus Ovares2009-07-29 20:32:54 +0000
commitf727f26bcc26a740a1bd0585e3cdeff0c8d81a25 (patch)
tree6131b08c94b65a9fea773a1853d382d85377b523 /OpenSim/Framework/Servers/HttpServer/OSHttpResponse.cs
parentThank you, coyled, for a patch to change Flotsamcache path generation (diff)
downloadopensim-SC_OLD-f727f26bcc26a740a1bd0585e3cdeff0c8d81a25.zip
opensim-SC_OLD-f727f26bcc26a740a1bd0585e3cdeff0c8d81a25.tar.gz
opensim-SC_OLD-f727f26bcc26a740a1bd0585e3cdeff0c8d81a25.tar.bz2
opensim-SC_OLD-f727f26bcc26a740a1bd0585e3cdeff0c8d81a25.tar.xz
* An attempt to fix mantis #3953
Diffstat (limited to 'OpenSim/Framework/Servers/HttpServer/OSHttpResponse.cs')
-rw-r--r--OpenSim/Framework/Servers/HttpServer/OSHttpResponse.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/OpenSim/Framework/Servers/HttpServer/OSHttpResponse.cs b/OpenSim/Framework/Servers/HttpServer/OSHttpResponse.cs
index d299001..6c90a92 100644
--- a/OpenSim/Framework/Servers/HttpServer/OSHttpResponse.cs
+++ b/OpenSim/Framework/Servers/HttpServer/OSHttpResponse.cs
@@ -258,6 +258,7 @@ namespace OpenSim.Framework.Servers.HttpServer
258 258
259 259
260 protected IHttpResponse _httpResponse; 260 protected IHttpResponse _httpResponse;
261 private IHttpClientContext _httpClientContext;
261 262
262 public OSHttpResponse() {} 263 public OSHttpResponse() {}
263 264
@@ -275,6 +276,12 @@ namespace OpenSim.Framework.Servers.HttpServer
275 public OSHttpResponse(OSHttpRequest req) 276 public OSHttpResponse(OSHttpRequest req)
276 { 277 {
277 _httpResponse = new HttpResponse(req.IHttpClientContext, req.IHttpRequest); 278 _httpResponse = new HttpResponse(req.IHttpClientContext, req.IHttpRequest);
279 _httpClientContext = req.IHttpClientContext;
280 }
281 public OSHttpResponse(HttpResponse resp, IHttpClientContext clientContext)
282 {
283 _httpResponse = resp;
284 _httpClientContext = clientContext;
278 } 285 }
279 286
280 /// <summary> 287 /// <summary>
@@ -298,5 +305,11 @@ namespace OpenSim.Framework.Servers.HttpServer
298 _httpResponse.Send(); 305 _httpResponse.Send();
299 306
300 } 307 }
308 public void FreeContext()
309 {
310 if (_httpClientContext != null)
311 _httpClientContext.Close();
312 }
313
301 } 314 }
302} 315}