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

support reload http_api

This commit is contained in:
winlin 2014-04-13 13:08:10 +08:00
parent 17ac29d160
commit c33ff4fdb8
6 changed files with 167 additions and 57 deletions

View file

@ -617,3 +617,17 @@ int SrsServer::on_reload_pid()
return acquire_pid_file();
}
int SrsServer::on_reload_http_api_enabled()
{
return listen_http_api();
}
int SrsServer::on_reload_http_api_disabled()
{
int ret = ERROR_SUCCESS;
close_listeners(SrsListenerHttpApi);
return ret;
}