diff options
author | UbitUmarov | 2015-09-23 23:59:50 +0100 |
---|---|---|
committer | UbitUmarov | 2015-09-23 23:59:50 +0100 |
commit | e441c9cac127a834a1256e05ae754c0882f0398d (patch) | |
tree | 231f7b54b9c803c4ea0dc3108923c700c89ac9d4 /OpenSim/Framework/Servers/HttpServer/OSHttpResponse.cs | |
parent | fix the DC term on flat patch encoding (diff) | |
download | opensim-SC-e441c9cac127a834a1256e05ae754c0882f0398d.zip opensim-SC-e441c9cac127a834a1256e05ae754c0882f0398d.tar.gz opensim-SC-e441c9cac127a834a1256e05ae754c0882f0398d.tar.bz2 opensim-SC-e441c9cac127a834a1256e05ae754c0882f0398d.tar.xz |
dont let http keepalive and context reuse be true
Diffstat (limited to 'OpenSim/Framework/Servers/HttpServer/OSHttpResponse.cs')
-rw-r--r-- | OpenSim/Framework/Servers/HttpServer/OSHttpResponse.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Framework/Servers/HttpServer/OSHttpResponse.cs b/OpenSim/Framework/Servers/HttpServer/OSHttpResponse.cs index 89fb5d4..17e9dc2 100644 --- a/OpenSim/Framework/Servers/HttpServer/OSHttpResponse.cs +++ b/OpenSim/Framework/Servers/HttpServer/OSHttpResponse.cs | |||
@@ -148,6 +148,7 @@ namespace OpenSim.Framework.Servers.HttpServer | |||
148 | _httpResponse.Connection = ConnectionType.Close; | 148 | _httpResponse.Connection = ConnectionType.Close; |
149 | _httpResponse.KeepAlive = 0; | 149 | _httpResponse.KeepAlive = 0; |
150 | } | 150 | } |
151 | |||
151 | else | 152 | else |
152 | { | 153 | { |
153 | _httpResponse.Connection = ConnectionType.KeepAlive; | 154 | _httpResponse.Connection = ConnectionType.KeepAlive; |
@@ -320,6 +321,11 @@ namespace OpenSim.Framework.Servers.HttpServer | |||
320 | public void Send() | 321 | public void Send() |
321 | { | 322 | { |
322 | _httpResponse.Body.Flush(); | 323 | _httpResponse.Body.Flush(); |
324 | |||
325 | // disable this till they are safe to use | ||
326 | _httpResponse.Connection = ConnectionType.Close; | ||
327 | _httpResponse.Chunked = false; | ||
328 | |||
323 | _httpResponse.Send(); | 329 | _httpResponse.Send(); |
324 | } | 330 | } |
325 | 331 | ||