1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

STAT: Support config server_id and generate one if empty. v4.0.257

This commit is contained in:
winlin 2022-08-24 15:06:43 +08:00
parent 8e6d207e56
commit 9923c749d4
9 changed files with 158 additions and 33 deletions

View file

@ -388,6 +388,8 @@ private:
// Whether user use full.conf
virtual bool is_full_config();
public:
// Get the server id, generated a random one if not configured.
virtual std::string get_server_id();
// Get the max connections limit of system.
// If exceed the max connection, SRS will disconnect the connection.
// @remark, linux will limit the connections of each process,
@ -419,6 +421,7 @@ public:
virtual bool get_asprocess();
// Whether query the latest available version of SRS.
virtual bool whether_query_latest_version();
virtual srs_utime_t first_wait_for_qlv();
// Whether empty client IP is ok.
virtual bool empty_ip_ok();
// Get the start wait in ms for gracefully quit.