mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
for #319, when reload the listen, restart all ingesters.
This commit is contained in:
parent
310b5a14cb
commit
342483bf04
2 changed files with 37 additions and 2 deletions
|
@ -81,6 +81,10 @@ private:
|
|||
private:
|
||||
SrsReusableThread* pthread;
|
||||
SrsPithyPrint* pprint;
|
||||
// whether the ingesters are expired,
|
||||
// for example, the listen port changed,
|
||||
// all ingesters must be restart.
|
||||
bool expired;
|
||||
public:
|
||||
SrsIngester();
|
||||
virtual ~SrsIngester();
|
||||
|
@ -89,6 +93,8 @@ public:
|
|||
public:
|
||||
virtual int start();
|
||||
virtual void stop();
|
||||
private:
|
||||
virtual void fast_stop();
|
||||
// interface ISrsReusableThreadHandler.
|
||||
public:
|
||||
virtual int cycle();
|
||||
|
@ -107,6 +113,7 @@ public:
|
|||
virtual int on_reload_ingest_removed(std::string vhost, std::string ingest_id);
|
||||
virtual int on_reload_ingest_added(std::string vhost, std::string ingest_id);
|
||||
virtual int on_reload_ingest_updated(std::string vhost, std::string ingest_id);
|
||||
virtual int on_reload_listen();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue