This repository was archived by the owner on Mar 24, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 1818 'pid_file ' => env ('SWOOLE_HTTP_PID_FILE ' , base_path ('storage/logs/swoole_http.pid ' )),
1919 'log_file ' => env ('SWOOLE_HTTP_LOG_FILE ' , base_path ('storage/logs/swoole_http.log ' )),
2020 'daemonize ' => env ('SWOOLE_HTTP_DAEMONIZE ' , false ),
21+ // Normally this value should be 1~4 times lager according to your cpu cores.
22+ 'worker_num ' => env ('SWOOLE_HTTP_WORKER_NUM ' , 4 ),
2123 'task_worker_num ' => env ('SWOOLE_HTTP_TASK_WORKER_NUM ' , 4 ),
24+ // The data to receive can't be larger than buffer_output_size.
25+ 'package_max_length ' => 10 * 1024 * 1024 ,
2226 // The data to send can't be larger than buffer_output_size.
2327 'buffer_output_size ' => 10 * 1024 * 1024
2428 ],
3842 | Laravel app will be cloned on every requset.
3943 |--------------------------------------------------------------------------
4044 */
41- 'sandbox_mode ' => env ('SWOOLE_SANDBOX_MODE ' , false ),
45+ 'sandbox_mode ' => env ('SWOOLE_SANDBOX_MODE ' , true ),
4246
4347 /*
4448 |--------------------------------------------------------------------------
Original file line number Diff line number Diff line change 44 /*
55 |--------------------------------------------------------------------------
66 | Websocket handler for onOpen and onClose callback
7- | Replace this handler before you start it
7+ | Replace this handler if you want to customize your websocket handler
88 |--------------------------------------------------------------------------
99 */
1010 'handler ' => SwooleTW \Http \Websocket \SocketIO \WebsocketHandler::class,
3333
3434 /*
3535 |--------------------------------------------------------------------------
36- | Heartbeat interval (ms)
36+ | Websocket client's heartbeat interval (ms)
3737 |--------------------------------------------------------------------------
3838 */
3939 'ping_interval ' => 25000 ,
4040
4141 /*
4242 |--------------------------------------------------------------------------
43- | Heartbeat interval timeout (ms)
43+ | Websocket client's heartbeat interval timeout (ms)
4444 |--------------------------------------------------------------------------
4545 */
4646 'ping_timeout ' => 60000 ,
4747
4848 /*
4949 |--------------------------------------------------------------------------
50- | Drivers mapping
50+ | Room drivers mapping
5151 |--------------------------------------------------------------------------
5252 */
5353 'drivers ' => [
5757
5858 /*
5959 |--------------------------------------------------------------------------
60- | Drivers settings
60+ | Room drivers settings
6161 |--------------------------------------------------------------------------
6262 */
6363 'settings ' => [
You can’t perform that action at this time.
0 commit comments