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

curl_multi_select 5.3+ #14

Closed
zckernel opened this issue Nov 21, 2013 · 1 comment
Closed

curl_multi_select 5.3+ #14

zckernel opened this issue Nov 21, 2013 · 1 comment

Comments

@zckernel
Copy link

Its hapens that on my PHP 5.3.27 I got an infinite loop because curl_multi_select($this->mc)
always return -1.

I have changed the correspond block to:

while($this->running && ($this->execStatus == CURLM_OK
|| $this->execStatus == CURLM_CALL_MULTI_PERFORM))
{
usleep($outerSleepInt);
$outerSleepInt *= $this->sleepIncrement;
if(curl_multi_select($this->mc) == -1)
usleep(100);

    do{
      $this->execStatus = curl_multi_exec($this->mc, $this->running);
      usleep($innerSleepInt);
      $innerSleepInt *= $this->sleepIncrement;
    }while($this->execStatus==CURLM_CALL_MULTI_PERFORM);
    $innerSleepInt = 1;

    $this->storeResponses();
@jmathai
Copy link
Owner

jmathai commented Oct 19, 2015

I believe this is a duplicate of gh-9. Closing this in favor of that. I'm using this in another project on 5.3+ and will be updating this library. Will check if that solves this issue.

@jmathai jmathai closed this as completed Oct 19, 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

No branches or pull requests

2 participants