1
0
Fork 0
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:
winlin 2015-09-01 18:39:14 +08:00
parent 310b5a14cb
commit 342483bf04
2 changed files with 37 additions and 2 deletions

View file

@ -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