Join 4,000+ others and never miss out on new tips, tutorials, and more.
pecl install openswoole-22.0.0 | composer require openswoole/core:22.1.2
<?php OpenSwoole\Server->set(array $settings)
Check the full list of OpenSwoole server configurations that can be used with this method
if success, it returns TRUE, otherwise it returns FALSE.
Set the runtime settings of the OpenSwoole server. Settings can be accessed by
$server->setting when the OpenSwoole server has started.
You can only use this method before the server has started, cannot be used before the call to
<?php $server->set([ 'reactor_num' => 2, 'worker_num' => 4, 'backlog' => 128, 'max_request' => 50, 'dispatch_mode' => 1, ]);
Checkout the full list and documentation for each server configuration. These options can be set using this method.