From 018d855f2840988163519ca941a373c77997c689 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Mon, 24 Aug 2015 07:38:33 +0100 Subject: [PATCH] turn off KeepAlive --- .../Capabilities/Handlers/GetMesh/GetMeshHandler.cs | 12 ++++++------ .../Handlers/GetTexture/GetTextureHandler.cs | 4 ++-- .../Region/ClientStack/Linden/Caps/GetMeshModule.cs | 4 ++-- .../ClientStack/Linden/Caps/GetTextureModule.cs | 6 +++--- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/OpenSim/Capabilities/Handlers/GetMesh/GetMeshHandler.cs b/OpenSim/Capabilities/Handlers/GetMesh/GetMeshHandler.cs index ae1aed7fd7..ec574a3e62 100644 --- a/OpenSim/Capabilities/Handlers/GetMesh/GetMeshHandler.cs +++ b/OpenSim/Capabilities/Handlers/GetMesh/GetMeshHandler.cs @@ -61,7 +61,7 @@ namespace OpenSim.Capabilities.Handlers Hashtable ret = new Hashtable(); ret["int_response_code"] = (int)System.Net.HttpStatusCode.NotFound; ret["content_type"] = "text/plain"; - ret["keepalive"] = true; + ret["keepalive"] = false; ret["reusecontext"] = false; ret["int_bytes"] = 0; ret["int_lod"] = 0; @@ -98,7 +98,7 @@ namespace OpenSim.Capabilities.Handlers Hashtable responsedata = new Hashtable(); responsedata["int_response_code"] = 400; //501; //410; //404; responsedata["content_type"] = "text/plain"; - responsedata["keepalive"] = true; + responsedata["keepalive"] = false; responsedata["str_response_string"] = "Request wasn't what was expected"; responsedata["reusecontext"] = false; responsedata["int_lod"] = 0; @@ -116,7 +116,7 @@ namespace OpenSim.Capabilities.Handlers { responsedata["int_response_code"] = 404; //501; //410; //404; responsedata["content_type"] = "text/plain"; - responsedata["keepalive"] = true; + responsedata["keepalive"] = false; responsedata["str_response_string"] = "The asset service is unavailable. So is your mesh."; responsedata["reusecontext"] = false; return responsedata; @@ -152,7 +152,7 @@ namespace OpenSim.Capabilities.Handlers { responsedata["int_response_code"] = 404; //501; //410; //404; responsedata["content_type"] = "text/plain"; - responsedata["keepalive"] = true; + responsedata["keepalive"] = false; responsedata["str_response_string"] = "This range doesnt exist."; responsedata["reusecontext"] = false; responsedata["int_lod"] = 3; @@ -228,7 +228,7 @@ namespace OpenSim.Capabilities.Handlers { responsedata["int_response_code"] = 404; //501; //410; //404; responsedata["content_type"] = "text/plain"; - responsedata["keepalive"] = true; + responsedata["keepalive"] = false; responsedata["str_response_string"] = "Unfortunately, this asset isn't a mesh."; responsedata["reusecontext"] = false; responsedata["int_lod"] = 1; @@ -239,7 +239,7 @@ namespace OpenSim.Capabilities.Handlers { responsedata["int_response_code"] = 404; //501; //410; //404; responsedata["content_type"] = "text/plain"; - responsedata["keepalive"] = true; + responsedata["keepalive"] = false; responsedata["str_response_string"] = "Your Mesh wasn't found. Sorry!"; responsedata["reusecontext"] = false; responsedata["int_lod"] = 0; diff --git a/OpenSim/Capabilities/Handlers/GetTexture/GetTextureHandler.cs b/OpenSim/Capabilities/Handlers/GetTexture/GetTextureHandler.cs index 0e0cb391e4..f3efb53891 100644 --- a/OpenSim/Capabilities/Handlers/GetTexture/GetTextureHandler.cs +++ b/OpenSim/Capabilities/Handlers/GetTexture/GetTextureHandler.cs @@ -66,7 +66,7 @@ namespace OpenSim.Capabilities.Handlers Hashtable ret = new Hashtable(); ret["int_response_code"] = (int)System.Net.HttpStatusCode.NotFound; ret["content_type"] = "text/plain"; - ret["keepalive"] = true; + ret["keepalive"] = false; ret["reusecontext"] = false; ret["int_bytes"] = 0; string textureStr = (string)request["texture_id"]; @@ -112,7 +112,7 @@ namespace OpenSim.Capabilities.Handlers ret["error_status_text"] = "not found"; ret["str_response_string"] = "not found"; ret["content_type"] = "text/plain"; - ret["keepalive"] = true; + ret["keepalive"] = false; ret["reusecontext"] = false; ret["int_bytes"] = 0; } diff --git a/OpenSim/Region/ClientStack/Linden/Caps/GetMeshModule.cs b/OpenSim/Region/ClientStack/Linden/Caps/GetMeshModule.cs index 4c15ad887e..a381a1bf01 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/GetMeshModule.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/GetMeshModule.cs @@ -264,7 +264,7 @@ namespace OpenSim.Region.ClientStack.Linden response["int_response_code"] = 500; response["str_response_string"] = "Script timeout"; response["content_type"] = "text/plain"; - response["keepalive"] = true; + response["keepalive"] = false; response["reusecontext"] = false; return response; @@ -285,7 +285,7 @@ namespace OpenSim.Region.ClientStack.Linden response["int_response_code"] = 500; response["str_response_string"] = "Script timeout"; response["content_type"] = "text/plain"; - response["keepalive"] = true; + response["keepalive"] = false; response["reusecontext"] = false; lock (responses) diff --git a/OpenSim/Region/ClientStack/Linden/Caps/GetTextureModule.cs b/OpenSim/Region/ClientStack/Linden/Caps/GetTextureModule.cs index 54e8d76c90..99ccd4bfe5 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/GetTextureModule.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/GetTextureModule.cs @@ -283,7 +283,7 @@ namespace OpenSim.Region.ClientStack.Linden response["int_response_code"] = 500; response["str_response_string"] = "Script timeout"; response["content_type"] = "text/plain"; - response["keepalive"] = true; + response["keepalive"] = false; response["reusecontext"] = false; return response; @@ -304,7 +304,7 @@ namespace OpenSim.Region.ClientStack.Linden response["int_response_code"] = 503; response["str_response_string"] = "Throttled"; response["content_type"] = "text/plain"; - response["keepalive"] = true; + response["keepalive"] = false; response["reusecontext"] = false; Hashtable headers = new Hashtable(); @@ -325,7 +325,7 @@ namespace OpenSim.Region.ClientStack.Linden response["int_response_code"] = 500; response["str_response_string"] = "Script timeout"; response["content_type"] = "text/plain"; - response["keepalive"] = true; + response["keepalive"] = false; response["reusecontext"] = false; lock (responses)