1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

add heatbeat url, add stream for api-server

This commit is contained in:
winlin 2014-05-19 15:27:05 +08:00
parent 98b564ce64
commit 7c804277b2
4 changed files with 39 additions and 3 deletions

View file

@ -509,7 +509,7 @@ int SrsConfig::reload()
//
// always support reload without additional code:
// chunk_size, ff_log_dir, max_connections,
// bandcheck, http_hooks
// bandcheck, http_hooks, heartbeat
// merge config: listen
if (!srs_directive_equals(root->get("listen"), old_root->get("listen"))) {
@ -1422,6 +1422,17 @@ string SrsConfig::get_pid_file()
return conf->arg0();
}
string SrsConfig::get_heartbeat_url()
{
SrsConfDirective* conf = root->get("heartbeat");
if (!conf) {
return "";
}
return conf->arg0();
}
int SrsConfig::get_pithy_print_publish()
{
SrsConfDirective* pithy = root->get("pithy_print");