mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
For #1579, support gracefully quit. 3.0.119
This commit is contained in:
parent
e6c329293c
commit
3c597545b1
10 changed files with 120 additions and 17 deletions
|
@ -227,6 +227,7 @@ private:
|
|||
bool signal_reload;
|
||||
bool signal_persistence_config;
|
||||
bool signal_gmc_stop;
|
||||
bool signal_fast_quit;
|
||||
bool signal_gracefully_quit;
|
||||
// Parent pid for asprocess.
|
||||
int ppid;
|
||||
|
@ -241,6 +242,9 @@ private:
|
|||
// When SIGTERM, SRS should do cleanup, for example,
|
||||
// to stop all ingesters, cleanup HLS and dvr.
|
||||
virtual void dispose();
|
||||
// Close listener to stop accepting new connections,
|
||||
// then wait and quit when all connections finished.
|
||||
virtual void gracefully_dispose();
|
||||
// server startup workflow, @see run_master()
|
||||
public:
|
||||
// Initialize server with callback handler ch.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue