mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Fix crash when quiting. v6.0.151 (#4157)
1. Remove the srs_global_dispose, which causes the crash when still publishing when quit. 2. Always call _srs_thread_pool->initialize for single thread. 3. Support `--signal-api` to send signal by HTTP API, because CLion eliminate the signals. --- Co-authored-by: Jacob Su <suzp1984@gmail.com>
This commit is contained in:
parent
b05f7b4452
commit
da5683e478
10 changed files with 87 additions and 160 deletions
|
|
@ -233,6 +233,17 @@ public:
|
|||
};
|
||||
#endif
|
||||
|
||||
#ifdef SRS_SIGNAL_API
|
||||
class SrsGoApiSignal : public ISrsHttpHandler
|
||||
{
|
||||
public:
|
||||
SrsGoApiSignal();
|
||||
virtual ~SrsGoApiSignal();
|
||||
public:
|
||||
virtual srs_error_t serve_http(ISrsHttpResponseWriter* w, ISrsHttpMessage* r);
|
||||
};
|
||||
#endif
|
||||
|
||||
class SrsGoApiMetrics : public ISrsHttpHandler
|
||||
{
|
||||
private:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue