【问题标题】:What is the max number of "concurrent" requests supported by PHP Guzzle?PHP Guzzle 支持的“并发”请求的最大数量是多少?
【发布时间】:2020-10-15 17:36:42
【问题描述】:

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) {

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

【问题讨论】:

    标签: php concurrency guzzle


    【解决方案1】:

    这个值没有限制。默认为25

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-09-01
      • 1970-01-01
      • 1970-01-01
      • 2011-04-04
      • 1970-01-01
      • 2021-10-15
      • 1970-01-01
      • 2015-03-09
      相关资源
      最近更新 更多