dont let http keepalive and context reuse be true

This commit is contained in:
UbitUmarov
2015-09-23 23:59:50 +01:00
parent c83351b9c0
commit e441c9cac1
2 changed files with 16 additions and 3 deletions

View File

@@ -148,6 +148,7 @@ namespace OpenSim.Framework.Servers.HttpServer
_httpResponse.Connection = ConnectionType.Close;
_httpResponse.KeepAlive = 0;
}
else
{
_httpResponse.Connection = ConnectionType.KeepAlive;
@@ -320,6 +321,11 @@ namespace OpenSim.Framework.Servers.HttpServer
public void Send()
{
_httpResponse.Body.Flush();
// disable this till they are safe to use
_httpResponse.Connection = ConnectionType.Close;
_httpResponse.Chunked = false;
_httpResponse.Send();
}