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 18
18
'pid_file ' => env ('SWOOLE_HTTP_PID_FILE ' , base_path ('storage/logs/swoole_http.pid ' )),
19
19
'log_file ' => env ('SWOOLE_HTTP_LOG_FILE ' , base_path ('storage/logs/swoole_http.log ' )),
20
20
'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 ),
21
23
'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 ,
22
26
// The data to send can't be larger than buffer_output_size.
23
27
'buffer_output_size ' => 10 * 1024 * 1024
24
28
],
38
42
| Laravel app will be cloned on every requset.
39
43
|--------------------------------------------------------------------------
40
44
*/
41
- 'sandbox_mode ' => env ('SWOOLE_SANDBOX_MODE ' , false ),
45
+ 'sandbox_mode ' => env ('SWOOLE_SANDBOX_MODE ' , true ),
42
46
43
47
/*
44
48
|--------------------------------------------------------------------------
Original file line number Diff line number Diff line change 4
4
/*
5
5
|--------------------------------------------------------------------------
6
6
| 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
8
8
|--------------------------------------------------------------------------
9
9
*/
10
10
'handler ' => SwooleTW \Http \Websocket \SocketIO \WebsocketHandler::class,
33
33
34
34
/*
35
35
|--------------------------------------------------------------------------
36
- | Heartbeat interval (ms)
36
+ | Websocket client's heartbeat interval (ms)
37
37
|--------------------------------------------------------------------------
38
38
*/
39
39
'ping_interval ' => 25000 ,
40
40
41
41
/*
42
42
|--------------------------------------------------------------------------
43
- | Heartbeat interval timeout (ms)
43
+ | Websocket client's heartbeat interval timeout (ms)
44
44
|--------------------------------------------------------------------------
45
45
*/
46
46
'ping_timeout ' => 60000 ,
47
47
48
48
/*
49
49
|--------------------------------------------------------------------------
50
- | Drivers mapping
50
+ | Room drivers mapping
51
51
|--------------------------------------------------------------------------
52
52
*/
53
53
'drivers ' => [
57
57
58
58
/*
59
59
|--------------------------------------------------------------------------
60
- | Drivers settings
60
+ | Room drivers settings
61
61
|--------------------------------------------------------------------------
62
62
*/
63
63
'settings ' => [
You can’t perform that action at this time.
0 commit comments