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
parent
48ef22f62e
commit
fd82a0a0b7
|
@ -300,12 +300,17 @@ namespace OpenSim.Region.ClientStack.Linden
|
||||||
{
|
{
|
||||||
response = new Hashtable();
|
response = new Hashtable();
|
||||||
|
|
||||||
|
|
||||||
response["int_response_code"] = 503;
|
response["int_response_code"] = 503;
|
||||||
response["str_response_string"] = "Throttled";
|
response["str_response_string"] = "Throttled";
|
||||||
response["content_type"] = "text/plain";
|
response["content_type"] = "text/plain";
|
||||||
response["keepalive"] = true;
|
response["keepalive"] = true;
|
||||||
response["reusecontext"] = false;
|
response["reusecontext"] = false;
|
||||||
|
|
||||||
|
Hashtable headers = new Hashtable();
|
||||||
|
headers["Retry-After"] = 30;
|
||||||
|
response["headers"] = headers;
|
||||||
|
|
||||||
lock (responses)
|
lock (responses)
|
||||||
responses[requestID] = new aPollResponse() {bytes = 0, response = response};
|
responses[requestID] = new aPollResponse() {bytes = 0, response = response};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue