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:
parent
7cfd2879b0
commit
59b9fa9610
2 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue