From fd82a0a0b79b9c0a817b887e7577e1094135dcd6 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Wed, 19 Aug 2015 00:26:43 +0100 Subject: 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 (?) --- OpenSim/Region/ClientStack/Linden/Caps/GetTextureModule.cs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'OpenSim/Region') 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 { response = new Hashtable(); + response["int_response_code"] = 503; response["str_response_string"] = "Throttled"; response["content_type"] = "text/plain"; response["keepalive"] = true; response["reusecontext"] = false; + + Hashtable headers = new Hashtable(); + headers["Retry-After"] = 30; + response["headers"] = headers; lock (responses) responses[requestID] = new aPollResponse() {bytes = 0, response = response}; -- cgit v1.1