mirror of
https://github.com/ossrs/srs.git
synced 2025-02-13 11:51:57 +00:00
Enable GSO by default
This commit is contained in:
parent
24eb61156f
commit
b6a929f9cf
2 changed files with 4 additions and 4 deletions
|
@ -441,8 +441,8 @@ rtc_server {
|
|||
merge_nalus on;
|
||||
# Whether enable GSO to send out RTP packets.
|
||||
# @remark Linux 4.18+ only, for other OS always disabled.
|
||||
# default: off
|
||||
gso off;
|
||||
# default: on
|
||||
gso on;
|
||||
}
|
||||
|
||||
vhost rtc.vhost.srs.com {
|
||||
|
|
|
@ -4795,7 +4795,7 @@ bool SrsConfig::get_rtc_server_merge_nalus()
|
|||
|
||||
bool SrsConfig::get_rtc_server_gso()
|
||||
{
|
||||
static int DEFAULT = false;
|
||||
static int DEFAULT = true;
|
||||
|
||||
SrsConfDirective* conf = root->get("rtc_server");
|
||||
if (!conf) {
|
||||
|
@ -4807,7 +4807,7 @@ bool SrsConfig::get_rtc_server_gso()
|
|||
return DEFAULT;
|
||||
}
|
||||
|
||||
bool v = SRS_CONF_PERFER_FALSE(conf->arg0());
|
||||
bool v = SRS_CONF_PERFER_TRUE(conf->arg0());
|
||||
|
||||
bool gso_disabled = false;
|
||||
#if !defined(__linux__)
|
||||
|
|
Loading…
Reference in a new issue