File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ class MultiCurl
10
10
private $ curls = array ();
11
11
private $ activeCurls = array ();
12
12
private $ isStarted = false ;
13
- private $ windowSize = 25 ;
13
+ private $ concurrency = 25 ;
14
14
15
15
private $ beforeSendFunction = null ;
16
16
private $ successFunction = null ;
@@ -573,12 +573,12 @@ public function start()
573
573
574
574
$ this ->isStarted = true ;
575
575
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 );
579
579
}
580
580
581
- for ($ i = 0 ; $ i < $ window_size ; $ i ++) {
581
+ for ($ i = 0 ; $ i < $ concurrency ; $ i ++) {
582
582
$ this ->initHandle (array_pop ($ this ->curls ));
583
583
}
584
584
You can’t perform that action at this time.
0 commit comments