简体   繁体   中英

What is the max number of "concurrent" requests supported by PHP Guzzle?

PHP Guzzle allows you to make concurrent requests, but you have to specify the "concurrency" number as a parameter.

For example:

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

What is the maximum number of concurrent requests supported?

There are no limitations to this value. By default, it would be 25 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM