aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Server/Handlers/Asset/AssetServerGetHandler.cs
diff options
context:
space:
mode:
authorteravus2013-10-07 23:52:44 -0500
committerteravus2013-10-07 23:52:44 -0500
commite7ea053c4a4945160980f5e6763ecc4dc8af2609 (patch)
treed29af783e53a7209c11fd6b8310d669142435801 /OpenSim/Server/Handlers/Asset/AssetServerGetHandler.cs
parent* Move the BasicDOSProtector.cs to OpenSim.Framework (all useful classes belo... (diff)
downloadopensim-SC-e7ea053c4a4945160980f5e6763ecc4dc8af2609.zip
opensim-SC-e7ea053c4a4945160980f5e6763ecc4dc8af2609.tar.gz
opensim-SC-e7ea053c4a4945160980f5e6763ecc4dc8af2609.tar.bz2
opensim-SC-e7ea053c4a4945160980f5e6763ecc4dc8af2609.tar.xz
* Remove a test *cleanup*
Diffstat (limited to 'OpenSim/Server/Handlers/Asset/AssetServerGetHandler.cs')
-rw-r--r--OpenSim/Server/Handlers/Asset/AssetServerGetHandler.cs12
1 files changed, 2 insertions, 10 deletions
diff --git a/OpenSim/Server/Handlers/Asset/AssetServerGetHandler.cs b/OpenSim/Server/Handlers/Asset/AssetServerGetHandler.cs
index cd42e70..8b23a83 100644
--- a/OpenSim/Server/Handlers/Asset/AssetServerGetHandler.cs
+++ b/OpenSim/Server/Handlers/Asset/AssetServerGetHandler.cs
@@ -42,22 +42,14 @@ using OpenSim.Framework.Servers.HttpServer;
42 42
43namespace OpenSim.Server.Handlers.Asset 43namespace OpenSim.Server.Handlers.Asset
44{ 44{
45 public class AssetServerGetHandler : BaseStreamHandlerBasicDOSProtector 45 public class AssetServerGetHandler : BaseStreamHandler
46 { 46 {
47 // private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 47 // private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
48 48
49 private IAssetService m_AssetService; 49 private IAssetService m_AssetService;
50 50
51 public AssetServerGetHandler(IAssetService service) : 51 public AssetServerGetHandler(IAssetService service) :
52 base("GET", "/assets",new BasicDosProtectorOptions() 52 base("GET", "/assets")
53 {
54 AllowXForwardedFor = true,
55 ForgetTimeSpan = TimeSpan.FromSeconds(2),
56 MaxRequestsInTimeframe = 5,
57 ReportingName = "ASSETGETDOSPROTECTOR",
58 RequestTimeSpan = TimeSpan.FromSeconds(5),
59 ThrottledAction = BasicDOSProtector.ThrottleAction.DoThrottledMethod
60 })
61 { 53 {
62 m_AssetService = service; 54 m_AssetService = service;
63 } 55 }