* Remove a test *cleanup*
parent
1df58d04b1
commit
e7ea053c4a
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue