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 (?)
avinationmerge
UbitUmarov 2015-08-19 00:26:43 +01:00
parent 48ef22f62e
commit fd82a0a0b7
1 changed files with 5 additions and 0 deletions

View File

@ -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};