mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 14:16:07 +08:00
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 (?)
This commit is contained in:
@@ -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};
|
||||
|
||||
Reference in New Issue
Block a user