mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 08:06:27 +08:00
* An attempt to fix mantis #3953
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user