http reusecontext is obsolete
parent
ee2eed8c6f
commit
aee981e5e2
|
@ -605,8 +605,7 @@ namespace OpenSim.Framework.Servers.HttpServer
|
|||
}
|
||||
|
||||
OSHttpResponse resp = new OSHttpResponse(new HttpResponse(context, request),context);
|
||||
// resp.ReuseContext = true;
|
||||
// resp.ReuseContext = false;
|
||||
|
||||
HandleRequest(req, resp);
|
||||
|
||||
// !!!HACK ALERT!!!
|
||||
|
|
|
@ -256,26 +256,7 @@ namespace OpenSim.Framework.Servers.HttpServer
|
|||
_httpResponse.Reason = value;
|
||||
}
|
||||
}
|
||||
/*
|
||||
public bool ReuseContext
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_httpClientContext != null)
|
||||
{
|
||||
return !_httpClientContext.EndWhenDone;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
set
|
||||
{
|
||||
if (_httpClientContext != null)
|
||||
{
|
||||
_httpClientContext.EndWhenDone = !value;
|
||||
}
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
protected IHttpResponse _httpResponse;
|
||||
private IHttpClientContext _httpClientContext;
|
||||
|
||||
|
|
|
@ -119,7 +119,6 @@ namespace OpenSim.Framework.Servers.HttpServer
|
|||
response.SendChunked = false;
|
||||
response.ContentLength64 = 0;
|
||||
response.ContentEncoding = Encoding.UTF8;
|
||||
// response.ReuseContext = false;
|
||||
response.KeepAlive = false;
|
||||
response.SendChunked = false;
|
||||
response.StatusCode = 503;
|
||||
|
|
|
@ -520,7 +520,6 @@ namespace OpenSim.Region.CoreModules.Scripting.LSLHttp
|
|||
response["str_response_string"] = "Script timeout";
|
||||
response["content_type"] = "text/plain";
|
||||
response["keepalive"] = false;
|
||||
response["reusecontext"] = false;
|
||||
|
||||
//remove from map
|
||||
lock (url.requests)
|
||||
|
@ -619,7 +618,6 @@ namespace OpenSim.Region.CoreModules.Scripting.LSLHttp
|
|||
response["str_response_string"] = "Script timeout";
|
||||
response["content_type"] = "text/plain";
|
||||
response["keepalive"] = false;
|
||||
response["reusecontext"] = false;
|
||||
return response;
|
||||
}
|
||||
//put response
|
||||
|
@ -627,7 +625,6 @@ namespace OpenSim.Region.CoreModules.Scripting.LSLHttp
|
|||
response["str_response_string"] = requestData.responseBody;
|
||||
response["content_type"] = requestData.responseType;
|
||||
response["keepalive"] = false;
|
||||
response["reusecontext"] = false;
|
||||
|
||||
if (url.allowXss)
|
||||
response["access_control_allow_origin"] = "*";
|
||||
|
|
|
@ -549,7 +549,6 @@ namespace SecondLife
|
|||
parameters.TreatWarningsAsErrors = false;
|
||||
parameters.GenerateInMemory = false;
|
||||
|
||||
// this seems to cause issues on some windows servers
|
||||
// parameters.TempFiles = new TempFileCollection(Path.Combine(ScriptEnginesPath,
|
||||
// m_scriptEngine.World.RegionInfo.RegionID.ToString()), CompileWithDebugInformation);
|
||||
|
||||
|
|
|
@ -117,8 +117,6 @@ namespace OpenSim.Tests.Common
|
|||
/// </summary>
|
||||
public string StatusDescription { get; set; }
|
||||
|
||||
public bool ReuseContext { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Add a header field and content to the response.
|
||||
/// </summary>
|
||||
|
|
Loading…
Reference in New Issue