Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Symfony version(s) affected: 5.x
Description https://github.com/symfony/rate-limiter/blob/5.x/RateLimit.php#L70
Probably a typo and there should be usleep? (or remove 1e6 )
usleep
1e6
public function wait(): void { sleep(($this->retryAfter->getTimestamp() - time()) * 1e6); }
The text was updated successfully, but these errors were encountered:
Great. Thank you for this issue.
There is a patch at #40658 that will resolve this.
Sorry, something went wrong.
bug #40658 [RateLimiter] Fix sleep value (jderusse)
4d23fec
This PR was merged into the 5.2 branch. Discussion ---------- [RateLimiter] Fix sleep value | Q | A | ------------- | --- | Branch? | 5.2 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #40656 | License | MIT | Doc PR | sleep vs usleep Commits ------- cf66399 Fix sleep value
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
Symfony version(s) affected: 5.x
Description
https://github.com/symfony/rate-limiter/blob/5.x/RateLimit.php#L70
Probably a typo and there should be
usleep
? (or remove1e6
)The text was updated successfully, but these errors were encountered: