minor cleanup

LSLKeyTest
UbitUmarov 2015-12-09 17:20:51 +00:00
parent f7a29ad8b5
commit 4ad7160e05
1 changed files with 4 additions and 17 deletions

View File

@ -90,30 +90,17 @@ namespace OpenSim.Framework.Servers.HttpServer
try try
{ {
response.OutputStream.Write(buffer, 0, buffer.Length); response.OutputStream.Write(buffer, 0, buffer.Length);
response.OutputStream.Flush();
response.Send();
buffer = null;
} }
catch (Exception ex) catch (Exception ex)
{ {
m_log.Warn("[POLL SERVICE WORKER THREAD]: Error ", ex); m_log.Warn("[POLL SERVICE WORKER THREAD]: Error ", ex);
} }
finally
{
//response.OutputStream.Close();
try
{
response.OutputStream.Flush();
response.Send();
//if (!response.KeepAlive && response.ReuseContext)
// response.FreeContext();
}
catch (Exception e)
{
m_log.Warn("[POLL SERVICE WORKER THREAD]: Error ", e);
}
PollServiceArgs.RequestsHandled++; PollServiceArgs.RequestsHandled++;
} }
}
internal void DoHTTPstop(BaseHttpServer server) internal void DoHTTPstop(BaseHttpServer server)
{ {