Skip to content

Commit 35fbade

Browse files
committed
Rename windowSize to concurrency
1 parent e77f853 commit 35fbade

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Curl/MultiCurl.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class MultiCurl
1010
private $curls = array();
1111
private $activeCurls = array();
1212
private $isStarted = false;
13-
private $windowSize = 25;
13+
private $concurrency = 25;
1414

1515
private $beforeSendFunction = null;
1616
private $successFunction = null;
@@ -573,12 +573,12 @@ public function start()
573573

574574
$this->isStarted = true;
575575

576-
$window_size = $this->windowSize;
577-
if ($window_size > count($this->curls)) {
578-
$window_size = count($this->curls);
576+
$concurrency = $this->concurrency;
577+
if ($concurrency > count($this->curls)) {
578+
$concurrency = count($this->curls);
579579
}
580580

581-
for ($i = 0; $i < $window_size; $i++) {
581+
for ($i = 0; $i < $concurrency; $i++) {
582582
$this->initHandle(array_pop($this->curls));
583583
}
584584

0 commit comments

Comments
 (0)