首页 > 解决方案 > PHP 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) {

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

标签: phpconcurrencyguzzle

解决方案


这个值没有限制。默认情况下,它将是25


推荐阅读