mirror of
https://github.com/ossrs/srs.git
synced 2025-02-15 04:42:04 +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;
|
merge_nalus on;
|
||||||
# Whether enable GSO to send out RTP packets.
|
# Whether enable GSO to send out RTP packets.
|
||||||
# @remark Linux 4.18+ only, for other OS always disabled.
|
# @remark Linux 4.18+ only, for other OS always disabled.
|
||||||
# default: off
|
# default: on
|
||||||
gso off;
|
gso on;
|
||||||
}
|
}
|
||||||
|
|
||||||
vhost rtc.vhost.srs.com {
|
vhost rtc.vhost.srs.com {
|
||||||
|
|
|
@ -4795,7 +4795,7 @@ bool SrsConfig::get_rtc_server_merge_nalus()
|
||||||
|
|
||||||
bool SrsConfig::get_rtc_server_gso()
|
bool SrsConfig::get_rtc_server_gso()
|
||||||
{
|
{
|
||||||
static int DEFAULT = false;
|
static int DEFAULT = true;
|
||||||
|
|
||||||
SrsConfDirective* conf = root->get("rtc_server");
|
SrsConfDirective* conf = root->get("rtc_server");
|
||||||
if (!conf) {
|
if (!conf) {
|
||||||
|
@ -4807,7 +4807,7 @@ bool SrsConfig::get_rtc_server_gso()
|
||||||
return DEFAULT;
|
return DEFAULT;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool v = SRS_CONF_PERFER_FALSE(conf->arg0());
|
bool v = SRS_CONF_PERFER_TRUE(conf->arg0());
|
||||||
|
|
||||||
bool gso_disabled = false;
|
bool gso_disabled = false;
|
||||||
#if !defined(__linux__)
|
#if !defined(__linux__)
|
||||||
|
|
Loading…
Reference in a new issue