Add a rate limiting circuit breaker to the network controller to prevent flooding attacks and race conditions.

This commit is contained in:
Adam Ierymenko 2015-07-23 10:10:17 -07:00
parent 3ba54c7e35
commit b3516c599b
4 changed files with 20 additions and 1 deletions

View file

@ -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;