mirror of
https://github.com/opensim/opensim.git
synced 2026-07-20 22:55:38 +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:
@@ -53,11 +53,14 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||
{
|
||||
|
||||
XmlRpcResponse resp = null;
|
||||
if (_dosProtector.Process(GetClientString(request, client), GetEndPoint(request, client)))
|
||||
string clientstring = GetClientString(request, client);
|
||||
string endpoint = GetEndPoint(request, client);
|
||||
if (_dosProtector.Process(clientstring, endpoint))
|
||||
resp = _normalMethod(request, client);
|
||||
else
|
||||
resp = _throttledMethod(request, client);
|
||||
|
||||
if (_options.MaxConcurrentSessions > 0)
|
||||
_dosProtector.ProcessEnd(clientstring, endpoint);
|
||||
return resp;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user