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

Another infinite loop #17

Open
01271 opened this issue May 10, 2014 · 1 comment
Open

Another infinite loop #17

01271 opened this issue May 10, 2014 · 1 comment

Comments

@01271
Copy link

01271 commented May 10, 2014

If a page which is running parallel curl's loading is stopped by a client, that page will forever be stuck in a loop.

On line 159:
// Blocks until there's less than the specified number of requests outstanding
private function waitForOutstandingRequestsToDropBelow( $max ) {
while ( 1 ) {
$this->checkForCompletedRequests();
if ( count( $this->outstanding_requests )<$max )
break;

        usleep( 10000 );
    }
}

This will make the script stop on php-fpm and infinitely loop through the usleep( 10000 ).
I thought it was an issue with my server or php-fpm but I traced it back to this and made my server simply close the function if it can't do it after up to 20 seconds.

@oguzdelioglu
Copy link

I have to same problem.
Page is error 500

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

No branches or pull requests

2 participants