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:
parent
17ac29d160
commit
c33ff4fdb8
6 changed files with 167 additions and 57 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue