From 2b769f64d0e116e53fee6a762f76076bc872c0a7 Mon Sep 17 00:00:00 2001 From: Ruben Date: Wed, 5 Oct 2016 21:53:44 +0200 Subject: [PATCH] Slightly strickter limmiting --- src/Api/ThrottleMiddleware.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Api/ThrottleMiddleware.php b/src/Api/ThrottleMiddleware.php index 1cc0222..3831859 100644 --- a/src/Api/ThrottleMiddleware.php +++ b/src/Api/ThrottleMiddleware.php @@ -41,7 +41,7 @@ class ThrottleMiddleware implements HttpKernelInterface $limit_requests = false; } else { // limited throttling for non-users (at ip level) - $tokens = 15; // max nr of tokens (also start amount) + $tokens = 10; // max nr of tokens (also start amount) $rate = 0.5; // tokens per seconds $name = 'ip_' . $request->getClientIp(); }