mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
change pollService stop() to send 503 error and no keepalive. ( untested )
This commit is contained in:
@@ -114,7 +114,29 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||
PollServiceArgs.RequestsHandled++;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
internal void DoHTTPstop(BaseHttpServer server)
|
||||
{
|
||||
OSHttpResponse response
|
||||
= new OSHttpResponse(new HttpResponse(HttpContext, Request), HttpContext);
|
||||
|
||||
response.SendChunked = false;
|
||||
response.ContentLength64 = 0;
|
||||
response.ContentEncoding = Encoding.UTF8;
|
||||
response.ReuseContext = false;
|
||||
response.KeepAlive = false;
|
||||
response.SendChunked = false;
|
||||
response.StatusCode = 503;
|
||||
|
||||
try
|
||||
{
|
||||
response.OutputStream.Flush();
|
||||
response.Send();
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class PollServiceHttpRequestComparer : IEqualityComparer<PollServiceHttpRequest>
|
||||
|
||||
Reference in New Issue
Block a user