File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed
Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -12,24 +12,10 @@ class Server extends Adapter
1212
1313 public function __construct (string $ host , string $ port = null , array $ settings = [])
1414 {
15- $ workerNumber = swoole_cpu_num () * 6 ;
1615 $ this ->server = new SwooleServer ($ host , $ port );
1716 $ this ->server ->set (\array_merge ($ settings , [
1817 'open_http2_protocol ' => true ,
19- // 'http_compression' => true,
20- // 'http_compression_level' => 6,
21-
22- // Server
23- // 'log_level' => 0,
2418 'dispatch_mode ' => 2 ,
25- // 'worker_num' => $workerNumber,
26- // 'reactor_num' => swoole_cpu_num() * 2,
27- // 'task_worker_num' => $workerNumber,
28- // 'open_cpu_affinity' => true,
29-
30- // Coroutine
31- // 'enable_coroutine' => true,
32- // 'max_coroutine' => 1000,
3319 ]));
3420 }
3521
You can’t perform that action at this time.
0 commit comments