aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/Linden/Caps
diff options
context:
space:
mode:
authorUbitUmarov2015-08-19 00:26:43 +0100
committerUbitUmarov2015-08-19 00:26:43 +0100
commitfd82a0a0b79b9c0a817b887e7577e1094135dcd6 (patch)
tree45c31ad8d55f56b47e16826404acceffd5c5ccfa /OpenSim/Region/ClientStack/Linden/Caps
parentchange pollService stop() to send 503 error and no keepalive. ( untested ) (diff)
downloadopensim-SC-fd82a0a0b79b9c0a817b887e7577e1094135dcd6.zip
opensim-SC-fd82a0a0b79b9c0a817b887e7577e1094135dcd6.tar.gz
opensim-SC-fd82a0a0b79b9c0a817b887e7577e1094135dcd6.tar.bz2
opensim-SC-fd82a0a0b79b9c0a817b887e7577e1094135dcd6.tar.xz
add a Retry-After response header to the 503 sent when we are 2 busy to do
the request. just 503 could mean server down (?)
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/Caps')
-rw-r--r--OpenSim/Region/ClientStack/Linden/Caps/GetTextureModule.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/GetTextureModule.cs b/OpenSim/Region/ClientStack/Linden/Caps/GetTextureModule.cs
index 656f177..54e8d76 100644
--- a/OpenSim/Region/ClientStack/Linden/Caps/GetTextureModule.cs
+++ b/OpenSim/Region/ClientStack/Linden/Caps/GetTextureModule.cs
@@ -300,11 +300,16 @@ namespace OpenSim.Region.ClientStack.Linden
300 { 300 {
301 response = new Hashtable(); 301 response = new Hashtable();
302 302
303
303 response["int_response_code"] = 503; 304 response["int_response_code"] = 503;
304 response["str_response_string"] = "Throttled"; 305 response["str_response_string"] = "Throttled";
305 response["content_type"] = "text/plain"; 306 response["content_type"] = "text/plain";
306 response["keepalive"] = true; 307 response["keepalive"] = true;
307 response["reusecontext"] = false; 308 response["reusecontext"] = false;
309
310 Hashtable headers = new Hashtable();
311 headers["Retry-After"] = 30;
312 response["headers"] = headers;
308 313
309 lock (responses) 314 lock (responses)
310 responses[requestID] = new aPollResponse() {bytes = 0, response = response}; 315 responses[requestID] = new aPollResponse() {bytes = 0, response = response};