Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
L
laravelzh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
冯超鹏
laravelzh
Commits
a7ecd16c
Commit
a7ecd16c
authored
Dec 02, 2020
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新swoole alarm
parent
371c0f3c
Pipeline
#169
failed with stages
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
alarm.php
app/Console/Commands/alarm.php
+3
-3
No files found.
app/Console/Commands/alarm.php
View file @
a7ecd16c
...
...
@@ -57,15 +57,15 @@ class alarm extends Command
{
$url
=
config
(
'public.swoolwebsocketurl'
);
$por
=
config
(
'public.swoolwebsocketurlpor'
);
$this
->
ws
=
new
\swoole_websocket_server
(
'0.0.0.0'
,
9601
,
SWOOLE_PROCESS
,
SWOOLE_SOCK_TCP
|
SWOOLE_SSL
);
//创建一个端口
$this
->
ws
=
new
\swoole_websocket_server
(
'0.0.0.0'
,
9601
,
SWOOLE_PROCESS
);
//创建一个端口
$this
->
ws
->
set
(
array
(
'reactor_num'
=>
2
,
//reactor线程数
'worker_num'
=>
4
,
//worker进程数
'backlog'
=>
128
,
//Listen队列长度
'max_request'
=>
10
,
//最大连接
'daemonize'
=>
0
,
//守护进程
'ssl_cert_file'
=>
base_path
()
.
'/tests/textcert/ssl.pem'
,
'ssl_key_file'
=>
base_path
()
.
'/tests/textcert/4544322_iot.zhkjgf.com.key'
,
//
'ssl_cert_file' => base_path() . '/tests/textcert/ssl.pem',
//
'ssl_key_file' => base_path() . '/tests/textcert/4544322_iot.zhkjgf.com.key',
// 'ssl_verify_peer' => true,
// 'ssl_allow_self_signed' => true,
// 'ssl_client_cert_file' => base_path() . '/tests/textcert/4544322_iot.zhkjgf.com_chain',
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment