mirror of
https://github.com/opensim/opensim.git
synced 2026-05-17 20:25:34 +08:00
* Add a session concurrency option per key. Allows developer/config to specify number of concurrent requests on a service.
This commit is contained in:
@@ -55,12 +55,14 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||
{
|
||||
byte[] result;
|
||||
RequestsReceived++;
|
||||
|
||||
if (_dosProtector.Process(GetClientString(httpRequest), GetRemoteAddr(httpRequest)))
|
||||
string clientstring = GetClientString(httpRequest);
|
||||
string endpoint = GetRemoteAddr(httpRequest);
|
||||
if (_dosProtector.Process(clientstring, endpoint))
|
||||
result = ProcessRequest(path, request, httpRequest, httpResponse);
|
||||
else
|
||||
result = ThrottledRequest(path, request, httpRequest, httpResponse);
|
||||
|
||||
if (_options.MaxConcurrentSessions > 0)
|
||||
_dosProtector.ProcessEnd(clientstring, endpoint);
|
||||
|
||||
RequestsHandled++;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user