Add a rate limiting circuit breaker to the network controller to prevent flooding attacks and race conditions.
This commit is contained in:
parent
3ba54c7e35
commit
b3516c599b
4 changed files with 20 additions and 1 deletions
|
@ -98,6 +98,8 @@ private:
|
|||
std::string _dbPath;
|
||||
std::string _instanceId;
|
||||
|
||||
std::map< std::pair<Address,uint64_t>,uint64_t > _lastRequestTime;
|
||||
|
||||
sqlite3 *_db;
|
||||
|
||||
sqlite3_stmt *_sGetNetworkById;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue