PHP Guzzle支持的“并发”请求的最大数量是多少?

时间:2020-10-15 08:54:15

标签: php concurrency guzzle

PHP Guzzle允许您发出并发请求,但是您必须指定“并发”数字作为参数。

例如:

$client = new Client();
$pool = new Pool($client, $generator($url, $data), [
  'concurrency' => 5,//this lets you set how many concurrent requests can be made
  'fulfilled' => function($response, $id) {

支持的并发请求最大数量是多少?

1 个答案:

答案 0 :(得分:1)

此值没有限制。默认情况下,它将为25