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

For #307, always 1 if os does not support sendmmsg

This commit is contained in:
winlin 2020-04-06 19:42:37 +08:00
parent 7cfd2879b0
commit 59b9fa9610
2 changed files with 3 additions and 3 deletions

View file

@ -404,7 +404,7 @@ rtc_server {
# default: on
ecdsa on;
# The max UDP messages send by sendmmsg.
# @remark No effect if OS does not support sendmmsg, like OSX.
# @remark Always 1 if OS does not support sendmmsg, like OSX.
# default: 256
sendmmsg 256;
}

View file

@ -4659,10 +4659,9 @@ bool SrsConfig::get_rtc_server_ecdsa()
int SrsConfig::get_rtc_server_sendmmsg()
{
#if !defined(SRS_AUTO_HAS_SENDMMSG) || !defined(SRS_AUTO_SENDMMSG)
static int DEFAULT = 1;
return 1;
#else
static int DEFAULT = 256;
#endif
SrsConfDirective* conf = root->get("rtc_server");
if (!conf) {
@ -4675,6 +4674,7 @@ int SrsConfig::get_rtc_server_sendmmsg()
}
return ::atoi(conf->arg0().c_str());
#endif
}
SrsConfDirective* SrsConfig::get_rtc(string vhost)