1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00
srs/trunk/src
Winlin fdcff383ae Support include empty config file. v5.0.173 (#3768)
SRS supports including another configuration in the include package.
When generating configurations, we can only generate the changed
configurations, while the unchanged configurations are in the fixed
files, for example:

```nginx
listen 1935;
include server.conf;
```

In `server.conf`, we can manage the changing configurations with the
program:

```nginx
http_api { enabled on; }
```

However, during system initialization, we often create an empty
`server.conf`, and the content is generated only after the program
starts, so `server.conf` might be an empty file. This also makes it
convenient to use a script to confirm the existence of this file:

```bash
touch server.conf
```

Currently, SRS does not support empty configurations and will report an
error. This PR is to solve this problem, making it more convenient to
use include.

`TRANS_BY_GPT4`

---------

Co-authored-by: Haibo Chen <495810242@qq.com>
2023-08-28 10:58:37 +08:00
..
app Support include empty config file. v5.0.173 (#3768) 2023-08-28 10:58:37 +08:00
core Support include empty config file. v5.0.173 (#3768) 2023-08-28 10:58:37 +08:00
kernel HLS: Ignore empty NALU to avoid error. v5.0.170 2023-08-02 11:02:22 +08:00
main asan: Fix memory leak in asan by releasing global IPs when run_directly_or_daemon fails. v5.0.154, v6.0.44 (#3541) 2023-05-14 12:25:48 +08:00
protocol API: Fix HTTPS callback issue using SNI in TLS client handshake. v5.0.168 (#3695) 2023-07-21 12:33:01 +08:00
utest Support include empty config file. v5.0.173 (#3768) 2023-08-28 10:58:37 +08:00