mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-30 04:01:47 +00:00
multicurl - starting new requests while curls array is not empty and activeCurls array size less than concurrency
This commit is contained in:
@@ -696,7 +696,7 @@ class MultiCurl
|
||||
unset($this->activeCurls[$key]);
|
||||
|
||||
// Start a new request before removing the handle of the completed one.
|
||||
if (count($this->curls) >= 1) {
|
||||
while (count($this->curls) >= 1 && count($this->activeCurls) < $this->concurrency) {
|
||||
$this->initHandle(array_shift($this->curls));
|
||||
}
|
||||
curl_multi_remove_handle($this->multiCurl, $curl->curl);
|
||||
|
||||
Reference in New Issue
Block a user