mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
SRT: Fix the missing config mss. v5.0.188 v6.0.88 (#3825)
--------- Co-authored-by: john <hondaxiao@tencent.com>
This commit is contained in:
parent
a1e4f61dd3
commit
40e5962bec
6 changed files with 13 additions and 5 deletions
|
@ -7912,7 +7912,7 @@ int64_t SrsConfig::get_srto_maxbw()
|
|||
|
||||
int SrsConfig::get_srto_mss()
|
||||
{
|
||||
SRS_OVERWRITE_BY_ENV_INT("srs.srt_server.mms"); // SRS_SRT_SERVER_MMS
|
||||
SRS_OVERWRITE_BY_ENV_INT("srs.srt_server.mss"); // SRS_SRT_SERVER_MSS
|
||||
|
||||
static int DEFAULT = 1500;
|
||||
SrsConfDirective* conf = root->get("srt_server");
|
||||
|
@ -7920,7 +7920,7 @@ int SrsConfig::get_srto_mss()
|
|||
return DEFAULT;
|
||||
}
|
||||
|
||||
conf = conf->get("mms");
|
||||
conf = conf->get("mss");
|
||||
if (!conf || conf->arg0().empty()) {
|
||||
return DEFAULT;
|
||||
}
|
||||
|
|
|
@ -9,6 +9,6 @@
|
|||
|
||||
#define VERSION_MAJOR 5
|
||||
#define VERSION_MINOR 0
|
||||
#define VERSION_REVISION 187
|
||||
#define VERSION_REVISION 188
|
||||
|
||||
#endif
|
||||
|
|
|
@ -9,6 +9,6 @@
|
|||
|
||||
#define VERSION_MAJOR 6
|
||||
#define VERSION_MINOR 0
|
||||
#define VERSION_REVISION 87
|
||||
#define VERSION_REVISION 88
|
||||
|
||||
#endif
|
||||
|
|
|
@ -4225,7 +4225,7 @@ VOID TEST(ConfigEnvTest, CheckEnvValuesSrtServer)
|
|||
SrsSetEnvConfig(srto_maxbw, "SRS_SRT_SERVER_MAXBW", "1000000000");
|
||||
EXPECT_EQ(1000000000, conf.get_srto_maxbw());
|
||||
|
||||
SrsSetEnvConfig(srto_mss, "SRS_SRT_SERVER_MMS", "1000");
|
||||
SrsSetEnvConfig(srto_mss, "SRS_SRT_SERVER_MSS", "1000");
|
||||
EXPECT_EQ(1000, conf.get_srto_mss());
|
||||
|
||||
SrsSetEnvConfig(srto_conntimeout, "SRS_SRT_SERVER_CONNECT_TIMEOUT", "2000");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue