File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ public function __construct(
74
74
75
75
$ curl_multi_options = [
76
76
CURLMOPT_PIPELINING => CURLPIPE_MULTIPLEX ,
77
- CURLMOPT_MAXCONNECTS => $ this ->options ->windowSize ,
77
+ CURLMOPT_MAXCONNECTS => $ this ->options ->window_size ,
78
78
] + $ this ->options ->curl_multi_options ;
79
79
80
80
foreach ($ curl_multi_options as $ k => $ v ){
@@ -141,7 +141,7 @@ public function process():CurlMultiClient{
141
141
}
142
142
143
143
// shoot out the first batch of requests
144
- for ($ i = 0 ; $ i < $ this ->options ->windowSize ; $ i ++){
144
+ for ($ i = 0 ; $ i < $ this ->options ->window_size ; $ i ++){
145
145
$ this ->createHandle ();
146
146
}
147
147
Original file line number Diff line number Diff line change 17
17
* @property array $curl_options
18
18
* @property string $ca_info
19
19
* @property bool $ssl_verifypeer
20
- * @property int $windowSize
20
+ * @property int $window_size
21
21
* @property int|float $sleep
22
22
* @property int $timeout
23
23
* @property int $retries
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ trait HTTPOptionsTrait{
23
23
/**
24
24
* A custom user agent string
25
25
*/
26
- protected string $ user_agent = 'chillerlanHttpInterface/2 .0 +https://github.com/chillerlan/php-httpinterface ' ;
26
+ protected string $ user_agent = 'chillerlanHttpInterface/5 .0 +https://github.com/chillerlan/php-httpinterface ' ;
27
27
28
28
/**
29
29
* options for each curl instance
@@ -60,7 +60,7 @@ trait HTTPOptionsTrait{
60
60
/**
61
61
* maximum of concurrent requests for curl_multi
62
62
*/
63
- protected int $ windowSize = 5 ;
63
+ protected int $ window_size = 5 ;
64
64
65
65
/**
66
66
* sleep timer (milliseconds) between each fired multi request on startup
You can’t perform that action at this time.
0 commit comments