Skip to content
New issue

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

Fix sleep calculation when waiting for delayed requests #1324

Merged
merged 1 commit into from Dec 1, 2015

Conversation

Briareos
Copy link
Contributor

@Briareos Briareos commented Dec 1, 2015

$nextTime is always set in the future, and usleep() takes microseconds as an argument. Currently this function always returns 0 if there are no ongoing requests, clogging the CPU in the while loop.

`$nextTime` is always set in the future, and `usleep()` takes microseconds as an argument. Currently this function always returns 0 if there are no ongoing requests, clogging the CPU in the `while` loop.
mtdowling added a commit that referenced this pull request Dec 1, 2015
Fix sleep calculation when waiting for delayed requests
@mtdowling mtdowling merged commit 2e5c595 into guzzle:master Dec 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants