From afb1d6cdd742dd7acfac1b3ac8ac62a523cddb4c Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Wed, 14 Nov 2018 17:49:05 +0000 Subject: take friends out of basicDOSprot (too little, too late) --- .../Avatar/Friends/FriendsRequestHandler.cs | 27 +++++++++++++--------- 1 file changed, 16 insertions(+), 11 deletions(-) (limited to 'OpenSim/Region/CoreModules/Avatar/Friends/FriendsRequestHandler.cs') diff --git a/OpenSim/Region/CoreModules/Avatar/Friends/FriendsRequestHandler.cs b/OpenSim/Region/CoreModules/Avatar/Friends/FriendsRequestHandler.cs index 091b197..29c2e8e 100644 --- a/OpenSim/Region/CoreModules/Avatar/Friends/FriendsRequestHandler.cs +++ b/OpenSim/Region/CoreModules/Avatar/Friends/FriendsRequestHandler.cs @@ -42,22 +42,27 @@ using log4net; namespace OpenSim.Region.CoreModules.Avatar.Friends { - public class FriendsRequestHandler : BaseStreamHandlerBasicDOSProtector + +// public class FriendsRequestHandler : BaseStreamHandlerBasicDOSProtector + public class FriendsRequestHandler : BaseStreamHandler { private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); private FriendsModule m_FriendsModule; - + /* + public FriendsRequestHandler(FriendsModule fmodule) + : base("POST", "/friends", new BasicDosProtectorOptions() + { + AllowXForwardedFor = true, + ForgetTimeSpan = TimeSpan.FromMinutes(2), + MaxRequestsInTimeframe = 20, + ReportingName = "FRIENDSDOSPROTECTOR", + RequestTimeSpan = TimeSpan.FromSeconds(5), + ThrottledAction = BasicDOSProtector.ThrottleAction.DoThrottledMethod + }) + */ public FriendsRequestHandler(FriendsModule fmodule) - : base("POST", "/friends", new BasicDosProtectorOptions() - { - AllowXForwardedFor = true, - ForgetTimeSpan = TimeSpan.FromMinutes(2), - MaxRequestsInTimeframe = 20, - ReportingName = "FRIENDSDOSPROTECTOR", - RequestTimeSpan = TimeSpan.FromSeconds(5), - ThrottledAction = BasicDOSProtector.ThrottleAction.DoThrottledMethod - }) + : base("POST", "/friends") { m_FriendsModule = fmodule; } -- cgit v1.1