relay
relay copied to clipboard
Multi-Ratelimits are not evaluated correctly
Multiple rate limits which are applied for the same category, e.g. bytes and quantity for logs, are not checked within the same atomic operation.
They are checked sequentially which leads to a problem where if quotas A, B are checked sequentially and B is rejected, the quota for A is already deducted (and cannot be refunded).