Skip to content

Commit

Permalink
Reduce max unauthenticated requests to 20 times per second
Browse files Browse the repository at this point in the history
* Should probably be reduced even further
  • Loading branch information
Gaute Lindkvist committed Oct 21, 2024
1 parent 20caaaa commit efde199
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RestInterface/cafRestServiceInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ using namespace caffa::rpc;
using namespace std::chrono_literals;

constexpr std::chrono::seconds RATE_LIMITER_TIME_PERIOD = 1s;
constexpr size_t RATE_LIMITER_MAX_REQUESTS = 200;
constexpr size_t RATE_LIMITER_MAX_REQUESTS = 20;

std::mutex RestServiceInterface::s_requestMutex;
std::list<std::chrono::steady_clock::time_point> RestServiceInterface::s_requestTimes;
Expand Down

0 comments on commit efde199

Please sign in to comment.