* An attempt to fix mantis #3953

This commit is contained in:
Teravus Ovares
2009-07-29 20:32:54 +00:00
parent cbeebc209d
commit f727f26bcc
8 changed files with 36 additions and 8 deletions

View File

@@ -258,6 +258,7 @@ namespace OpenSim.Framework.Servers.HttpServer
protected IHttpResponse _httpResponse;
private IHttpClientContext _httpClientContext;
public OSHttpResponse() {}
@@ -275,6 +276,12 @@ namespace OpenSim.Framework.Servers.HttpServer
public OSHttpResponse(OSHttpRequest req)
{
_httpResponse = new HttpResponse(req.IHttpClientContext, req.IHttpRequest);
_httpClientContext = req.IHttpClientContext;
}
public OSHttpResponse(HttpResponse resp, IHttpClientContext clientContext)
{
_httpResponse = resp;
_httpClientContext = clientContext;
}
/// <summary>
@@ -298,5 +305,11 @@ namespace OpenSim.Framework.Servers.HttpServer
_httpResponse.Send();
}
public void FreeContext()
{
if (_httpClientContext != null)
_httpClientContext.Close();
}
}
}