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

RTC: Change reuseport to 1

This commit is contained in:
winlin 2020-06-23 18:31:27 +08:00
parent 89c0748234
commit acb8793140
2 changed files with 7 additions and 5 deletions

View file

@ -4820,8 +4820,10 @@ int SrsConfig::get_rtc_server_reuseport()
int v = get_rtc_server_reuseport2();
#if !defined(SO_REUSEPORT)
srs_warn("REUSEPORT not supported, reset %d to %d", reuseport, DEFAULT);
v = 1
if (v > 1) {
srs_warn("REUSEPORT not supported, reset %d to %d", reuseport, DEFAULT);
v = 1
}
#endif
return v;
@ -4829,7 +4831,7 @@ int SrsConfig::get_rtc_server_reuseport()
int SrsConfig::get_rtc_server_reuseport2()
{
static int DEFAULT = 4;
static int DEFAULT = 1;
SrsConfDirective* conf = root->get("rtc_server");
if (!conf) {