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

System: Fail if use use full.conf

This commit is contained in:
winlin 2021-05-18 11:02:57 +08:00
parent 1bd6bfd142
commit 0d14c4b073
3 changed files with 33 additions and 3 deletions

View file

@ -442,6 +442,10 @@ public:
// If true, SRS will run in daemon mode, fork and fork to reap the
// grand-child process to init process.
virtual bool get_daemon();
private:
// Whether user use full.conf
virtual bool is_full_config();
public:
// 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,