Class LookupThrottler
- java.lang.Object
-
- net.i2p.router.networkdb.kademlia.LookupThrottler
-
class LookupThrottler extends Object
Count how often we have recently received a lookup request with the reply specified to go to a peer/TunnelId pair. This offers basic DOS protection but is not a complete solution. The reply peer/tunnel could be spoofed, for example. And a requestor could have up to 6 reply tunnels.- Since:
- 0.7.11
-
-
Constructor Summary
Constructors Constructor Description LookupThrottler(FloodfillNetworkDatabaseFacade facade)
LookupThrottler(FloodfillNetworkDatabaseFacade facade, int maxlookups, int maxnonfflookups, long cleanTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) boolean
shouldThrottle(Hash key, TunnelId id)
increments before checking
-
-
-
Constructor Detail
-
LookupThrottler
LookupThrottler(FloodfillNetworkDatabaseFacade facade)
-
LookupThrottler
LookupThrottler(FloodfillNetworkDatabaseFacade facade, int maxlookups, int maxnonfflookups, long cleanTime)
- Parameters:
maxlookups
- when floodfillmaxnonfflookups
- when not floodfill- Since:
- 0.9.61
-
-