You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if ($ipCount >= Constants::MAX_ALLOWED_IP_RANGE_WIDTH) {
273
+
if ($ipCount >= 1000) {
273
274
thrownewBouncerException("Unable to store the decision ${$decision['id']}, the IP range: ${$decision['value']} is too large and can cause storage problem. Decision ignored.");
274
275
}
275
276
} while (0 !== strcmp($address->getComparableString(), $comparableEndAddress));
@@ -285,7 +286,7 @@ private function removeRemediations(array $decisions): int
if (!$this->removeDecisionFromRemediationItem($address->toString(), $decision['id'])) {
310
+
if (!$this->removeDecisionFromRemediationItem(Bouncer::formatIpAsCacheKey($address), $decision['id'])) {
310
311
$success = false;
311
312
}
312
313
++$ipCount;
313
-
if ($ipCount >= Constants::MAX_ALLOWED_IP_RANGE_WIDTH) {
314
+
if ($ipCount >= 1000) {
314
315
thrownewBouncerException("Unable to store the decision ${$decision['id']}, the IP range: ${$decision['value']} is too large and can cause storage problem. Decision ignored.");
315
316
}
316
317
} while (0 !== strcmp($address->getComparableString(), $comparableEndAddress));
@@ -458,16 +459,17 @@ public function pullUpdates(): array
458
459
* In stream mode, as we considere cache is the single source of truth, the IP is considered clean.
459
460
* Finally the result is stored in caches for further calls.
0 commit comments