diff options
author | UbitUmarov | 2015-08-18 21:32:03 +0100 |
---|---|---|
committer | UbitUmarov | 2015-08-18 21:32:03 +0100 |
commit | 05d72f77ff38585817dead9b4a812ff97a001dce (patch) | |
tree | 109840c9d524ecddec25b5de2869f68254dd1aa1 /OpenSim/Capabilities/Handlers/GetMesh | |
parent | try to serialize http requests from same connection, so they are processed (diff) | |
download | opensim-SC-05d72f77ff38585817dead9b4a812ff97a001dce.zip opensim-SC-05d72f77ff38585817dead9b4a812ff97a001dce.tar.gz opensim-SC-05d72f77ff38585817dead9b4a812ff97a001dce.tar.bz2 opensim-SC-05d72f77ff38585817dead9b4a812ff97a001dce.tar.xz |
do keepalive on mesh and texture GET. Dont use reusecontext any where.
setting of keepalive is wrong, it should follow the requested one ( or
always as http1.1) only deny if needed (errors). KeepAlive may increase
stress on number of avaiable file descritors.
Diffstat (limited to 'OpenSim/Capabilities/Handlers/GetMesh')
-rw-r--r-- | OpenSim/Capabilities/Handlers/GetMesh/GetMeshHandler.cs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/OpenSim/Capabilities/Handlers/GetMesh/GetMeshHandler.cs b/OpenSim/Capabilities/Handlers/GetMesh/GetMeshHandler.cs index ec574a3..ae1aed7 100644 --- a/OpenSim/Capabilities/Handlers/GetMesh/GetMeshHandler.cs +++ b/OpenSim/Capabilities/Handlers/GetMesh/GetMeshHandler.cs | |||
@@ -61,7 +61,7 @@ namespace OpenSim.Capabilities.Handlers | |||
61 | Hashtable ret = new Hashtable(); | 61 | Hashtable ret = new Hashtable(); |
62 | ret["int_response_code"] = (int)System.Net.HttpStatusCode.NotFound; | 62 | ret["int_response_code"] = (int)System.Net.HttpStatusCode.NotFound; |
63 | ret["content_type"] = "text/plain"; | 63 | ret["content_type"] = "text/plain"; |
64 | ret["keepalive"] = false; | 64 | ret["keepalive"] = true; |
65 | ret["reusecontext"] = false; | 65 | ret["reusecontext"] = false; |
66 | ret["int_bytes"] = 0; | 66 | ret["int_bytes"] = 0; |
67 | ret["int_lod"] = 0; | 67 | ret["int_lod"] = 0; |
@@ -98,7 +98,7 @@ namespace OpenSim.Capabilities.Handlers | |||
98 | Hashtable responsedata = new Hashtable(); | 98 | Hashtable responsedata = new Hashtable(); |
99 | responsedata["int_response_code"] = 400; //501; //410; //404; | 99 | responsedata["int_response_code"] = 400; //501; //410; //404; |
100 | responsedata["content_type"] = "text/plain"; | 100 | responsedata["content_type"] = "text/plain"; |
101 | responsedata["keepalive"] = false; | 101 | responsedata["keepalive"] = true; |
102 | responsedata["str_response_string"] = "Request wasn't what was expected"; | 102 | responsedata["str_response_string"] = "Request wasn't what was expected"; |
103 | responsedata["reusecontext"] = false; | 103 | responsedata["reusecontext"] = false; |
104 | responsedata["int_lod"] = 0; | 104 | responsedata["int_lod"] = 0; |
@@ -116,7 +116,7 @@ namespace OpenSim.Capabilities.Handlers | |||
116 | { | 116 | { |
117 | responsedata["int_response_code"] = 404; //501; //410; //404; | 117 | responsedata["int_response_code"] = 404; //501; //410; //404; |
118 | responsedata["content_type"] = "text/plain"; | 118 | responsedata["content_type"] = "text/plain"; |
119 | responsedata["keepalive"] = false; | 119 | responsedata["keepalive"] = true; |
120 | responsedata["str_response_string"] = "The asset service is unavailable. So is your mesh."; | 120 | responsedata["str_response_string"] = "The asset service is unavailable. So is your mesh."; |
121 | responsedata["reusecontext"] = false; | 121 | responsedata["reusecontext"] = false; |
122 | return responsedata; | 122 | return responsedata; |
@@ -152,7 +152,7 @@ namespace OpenSim.Capabilities.Handlers | |||
152 | { | 152 | { |
153 | responsedata["int_response_code"] = 404; //501; //410; //404; | 153 | responsedata["int_response_code"] = 404; //501; //410; //404; |
154 | responsedata["content_type"] = "text/plain"; | 154 | responsedata["content_type"] = "text/plain"; |
155 | responsedata["keepalive"] = false; | 155 | responsedata["keepalive"] = true; |
156 | responsedata["str_response_string"] = "This range doesnt exist."; | 156 | responsedata["str_response_string"] = "This range doesnt exist."; |
157 | responsedata["reusecontext"] = false; | 157 | responsedata["reusecontext"] = false; |
158 | responsedata["int_lod"] = 3; | 158 | responsedata["int_lod"] = 3; |
@@ -228,7 +228,7 @@ namespace OpenSim.Capabilities.Handlers | |||
228 | { | 228 | { |
229 | responsedata["int_response_code"] = 404; //501; //410; //404; | 229 | responsedata["int_response_code"] = 404; //501; //410; //404; |
230 | responsedata["content_type"] = "text/plain"; | 230 | responsedata["content_type"] = "text/plain"; |
231 | responsedata["keepalive"] = false; | 231 | responsedata["keepalive"] = true; |
232 | responsedata["str_response_string"] = "Unfortunately, this asset isn't a mesh."; | 232 | responsedata["str_response_string"] = "Unfortunately, this asset isn't a mesh."; |
233 | responsedata["reusecontext"] = false; | 233 | responsedata["reusecontext"] = false; |
234 | responsedata["int_lod"] = 1; | 234 | responsedata["int_lod"] = 1; |
@@ -239,7 +239,7 @@ namespace OpenSim.Capabilities.Handlers | |||
239 | { | 239 | { |
240 | responsedata["int_response_code"] = 404; //501; //410; //404; | 240 | responsedata["int_response_code"] = 404; //501; //410; //404; |
241 | responsedata["content_type"] = "text/plain"; | 241 | responsedata["content_type"] = "text/plain"; |
242 | responsedata["keepalive"] = false; | 242 | responsedata["keepalive"] = true; |
243 | responsedata["str_response_string"] = "Your Mesh wasn't found. Sorry!"; | 243 | responsedata["str_response_string"] = "Your Mesh wasn't found. Sorry!"; |
244 | responsedata["reusecontext"] = false; | 244 | responsedata["reusecontext"] = false; |
245 | responsedata["int_lod"] = 0; | 245 | responsedata["int_lod"] = 0; |