Changeset View
Changeset View
Standalone View
Standalone View
src/config/octane.php
Show First 20 Lines • Show All 224 Lines • ▼ Show 20 Lines | */ | ||||
|-------------------------------------------------------------------------- | |-------------------------------------------------------------------------- | ||||
| | | | ||||
| See Laravel\Octane\Command\StartSwooleCommand | | See Laravel\Octane\Command\StartSwooleCommand | ||||
*/ | */ | ||||
'swoole' => [ | 'swoole' => [ | ||||
'options' => [ | 'options' => [ | ||||
'log_file' => storage_path('logs/swoole_http.log'), | 'log_file' => storage_path('logs/swoole_http.log'), | ||||
'package_max_length' => 10 * 1024 * 1024, | 'package_max_length' => env('SWOOLE_PACKAGE_MAX_LENGTH', 10 * 1024 * 1024), | ||||
// 'enable_coroutine' => false, | // 'enable_coroutine' => false, | ||||
// 'daemonize' => false, | // 'daemonize' => false, | ||||
// 'log_level' => app()->environment('local') ? SWOOLE_LOG_INFO : SWOOLE_LOG_ERROR, | // 'log_level' => app()->environment('local') ? SWOOLE_LOG_INFO : SWOOLE_LOG_ERROR, | ||||
// 'reactor_num' => | // 'reactor_num' => | ||||
// 'send_yield' => true, | // 'send_yield' => true, | ||||
// 'socket_buffer_size' => 10 * 1024 * 1024, | // 'socket_buffer_size' => 10 * 1024 * 1024, | ||||
// 'task_worker_num' => | // 'task_worker_num' => | ||||
// 'worker_num' => | // 'worker_num' => | ||||
], | ], | ||||
], | ], | ||||
]; | ]; |