<?php
Swoole\Server->set ( array $settings )
SWOOLE_LOG_ROTATION_DAILY
: log rotation settingCheck the full list of Swoole server configuration
if success, it returns TRUE, otherwise it returns FALSE.
Set the runtime settings of the Swoole server. The settings can be accessed by $server->setting
when the Swoole server has started.
<?php
$server->set(array(
'reactor_num' => 2, //reactor thread num
'worker_num' => 4, //worker process num
'backlog' => 128, //listen backlog
'max_request' => 50,
'dispatch_mode' => 1,
));