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

For #3236: Live: Change gop cache limits to 2500. v5.0.94 (#3273)

This commit is contained in:
Winlin 2022-11-23 09:50:19 +08:00 committed by GitHub
parent daa7fd2247
commit 13918ed81f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

View file

@ -1098,9 +1098,9 @@ vhost play.srs.com {
gop_cache off; gop_cache off;
# Limit the max frames in gop cache. It might cause OOM if video stream has no IDR frame, so we limit to N # Limit the max frames in gop cache. It might cause OOM if video stream has no IDR frame, so we limit to N
# frames by default. # frames by default. Note that it's the size of gop cache, including videos, audios and other messages.
# default: 250 # default: 2500
gop_cache_max_frames 250; gop_cache_max_frames 2500;
# the max live queue length in seconds. # the max live queue length in seconds.
# if the messages in the queue exceed the max length, # if the messages in the queue exceed the max length,

View file

@ -38,6 +38,6 @@ vhost __defaultVhost__ {
} }
play{ play{
gop_cache_max_frames 250; gop_cache_max_frames 2500;
} }
} }

View file

@ -4663,7 +4663,7 @@ int SrsConfig::get_gop_cache_max_frames(string vhost)
{ {
SRS_OVERWRITE_BY_ENV_INT("srs.vhost.play.gop_cache_max_frames"); SRS_OVERWRITE_BY_ENV_INT("srs.vhost.play.gop_cache_max_frames");
static int DEFAULT = 250; static int DEFAULT = 2500;
SrsConfDirective* conf = get_vhost(vhost); SrsConfDirective* conf = get_vhost(vhost);
if (!conf) { if (!conf) {

View file

@ -9,6 +9,6 @@
#define VERSION_MAJOR 5 #define VERSION_MAJOR 5
#define VERSION_MINOR 0 #define VERSION_MINOR 0
#define VERSION_REVISION 93 #define VERSION_REVISION 94
#endif #endif