* Remove a test *cleanup*

link-sitting
teravus 2013-10-07 23:52:44 -05:00
parent 1df58d04b1
commit e7ea053c4a
1 changed files with 2 additions and 10 deletions

View File

@ -42,22 +42,14 @@ using OpenSim.Framework.Servers.HttpServer;
namespace OpenSim.Server.Handlers.Asset namespace OpenSim.Server.Handlers.Asset
{ {
public class AssetServerGetHandler : BaseStreamHandlerBasicDOSProtector public class AssetServerGetHandler : BaseStreamHandler
{ {
// private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); // private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
private IAssetService m_AssetService; private IAssetService m_AssetService;
public AssetServerGetHandler(IAssetService service) : public AssetServerGetHandler(IAssetService service) :
base("GET", "/assets",new BasicDosProtectorOptions() base("GET", "/assets")
{
AllowXForwardedFor = true,
ForgetTimeSpan = TimeSpan.FromSeconds(2),
MaxRequestsInTimeframe = 5,
ReportingName = "ASSETGETDOSPROTECTOR",
RequestTimeSpan = TimeSpan.FromSeconds(5),
ThrottledAction = BasicDOSProtector.ThrottleAction.DoThrottledMethod
})
{ {
m_AssetService = service; m_AssetService = service;
} }