minor cleanup
parent
f7a29ad8b5
commit
4ad7160e05
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue