Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
胡斌
/
srs
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
winlin
2014-07-25 10:54:36 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
630bdf0c802b06d510c90ffd0835ee8febc57be7
630bdf0c
1 parent
7207c2f4
refine config, check the value of http api/stream.
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
36 行增加
和
0 行删除
trunk/src/app/srs_app_config.cpp
trunk/src/app/srs_app_config.cpp
查看文件 @
630bdf0
...
...
@@ -1405,6 +1405,42 @@ int SrsConfig::check_config()
return
ret
;
}
////////////////////////////////////////////////////////////////////////
// check heartbeat
////////////////////////////////////////////////////////////////////////
if
(
get_heartbeat_interval
()
<=
0
)
{
ret
=
ERROR_SYSTEM_CONFIG_INVALID
;
srs_error
(
"directive heartbeat interval invalid, interval=%"
PRId64
", ret=%d"
,
get_heartbeat_interval
(),
ret
);
return
ret
;
}
if
(
get_heartbeat_device_index
()
<
0
)
{
ret
=
ERROR_SYSTEM_CONFIG_INVALID
;
srs_error
(
"directive heartbeat device_index invalid, device_index=%d, ret=%d"
,
get_heartbeat_device_index
(),
ret
);
return
ret
;
}
////////////////////////////////////////////////////////////////////////
// check http api
////////////////////////////////////////////////////////////////////////
if
(
get_http_api_listen
()
<=
0
)
{
ret
=
ERROR_SYSTEM_CONFIG_INVALID
;
srs_error
(
"directive http_api listen invalid, listen=%d, ret=%d"
,
get_http_api_listen
(),
ret
);
return
ret
;
}
////////////////////////////////////////////////////////////////////////
// check http stream
////////////////////////////////////////////////////////////////////////
if
(
get_http_stream_listen
()
<=
0
)
{
ret
=
ERROR_SYSTEM_CONFIG_INVALID
;
srs_error
(
"directive http_stream listen invalid, listen=%d, ret=%d"
,
get_http_stream_listen
(),
ret
);
return
ret
;
}
// TODO: FIXME: check others.
////////////////////////////////////////////////////////////////////////
...
...
请
注册
或
登录
后发表评论