Remove support for executing a handler on poll. It caused other issues
parent
06871d51dd
commit
c5be401d46
|
@ -337,11 +337,6 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||||
// handled
|
// handled
|
||||||
//m_log.Debug("[BASE HTTP SERVER]: Handling Request" + request.RawUrl);
|
//m_log.Debug("[BASE HTTP SERVER]: Handling Request" + request.RawUrl);
|
||||||
|
|
||||||
// If the response is null, then we're not going to respond here. This case
|
|
||||||
// triggers when we're at the head of a HTTP poll
|
|
||||||
//
|
|
||||||
if (response != null)
|
|
||||||
{
|
|
||||||
IHttpAgentHandler agentHandler;
|
IHttpAgentHandler agentHandler;
|
||||||
|
|
||||||
if (TryGetAgentHandler(request, response, out agentHandler))
|
if (TryGetAgentHandler(request, response, out agentHandler))
|
||||||
|
@ -354,7 +349,7 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||||
|
|
||||||
//response.KeepAlive = true;
|
//response.KeepAlive = true;
|
||||||
response.SendChunked = false;
|
response.SendChunked = false;
|
||||||
}
|
|
||||||
IRequestHandler requestHandler;
|
IRequestHandler requestHandler;
|
||||||
|
|
||||||
string path = request.RawUrl;
|
string path = request.RawUrl;
|
||||||
|
@ -368,7 +363,6 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||||
// Okay, so this is bad, but should be considered temporary until everything is IStreamHandler.
|
// Okay, so this is bad, but should be considered temporary until everything is IStreamHandler.
|
||||||
byte[] buffer = null;
|
byte[] buffer = null;
|
||||||
|
|
||||||
if (response != null)
|
|
||||||
response.ContentType = requestHandler.ContentType; // Lets do this defaulting before in case handler has varying content type.
|
response.ContentType = requestHandler.ContentType; // Lets do this defaulting before in case handler has varying content type.
|
||||||
|
|
||||||
|
|
||||||
|
@ -425,11 +419,6 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||||
//m_log.Warn("[HTTP]: " + requestBody);
|
//m_log.Warn("[HTTP]: " + requestBody);
|
||||||
|
|
||||||
}
|
}
|
||||||
// If we're not responding, we dont' care about the reply
|
|
||||||
//
|
|
||||||
if (response == null)
|
|
||||||
HTTPRequestHandler.Handle(path, keysvals);
|
|
||||||
else
|
|
||||||
DoHTTPGruntWork(HTTPRequestHandler.Handle(path, keysvals), response);
|
DoHTTPGruntWork(HTTPRequestHandler.Handle(path, keysvals), response);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -445,11 +434,6 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// The handler has run and we're not yet ready to respond, bail
|
|
||||||
//
|
|
||||||
if (response == null)
|
|
||||||
return;
|
|
||||||
|
|
||||||
request.InputStream.Close();
|
request.InputStream.Close();
|
||||||
|
|
||||||
// HTTP IN support. The script engine taes it from here
|
// HTTP IN support. The script engine taes it from here
|
||||||
|
|
Loading…
Reference in New Issue