Skip to content

After the HLS streaming stops, the number of online clients slowly decreases and takes a long time to reach 0. #3009

@lbli

Description

@lbli

Note: Before asking a question, please read the FAQ (Please read FAQ before filing an issue) #2716

Description
After stopping the HLS streaming, the number of online clients decreases slowly and takes a long time to reach 0.

Please description your issue here
I am using srs-bench for load testing. When pulling streams using http-flv with sb_http_load for 1000 streams, after stopping the streams, the number of clients instantly decreases to 0 when using the /api/v1/clients?start=0&count=10000 API to get the client count. However, when pulling streams using hls with sb_hls_load for 1000 streams, after stopping the streams, it takes a long time for the client count to decrease to 0 when using the /api/v1/clients?start=0&count=10000 API.

SRS Version: xxxxxx
4.0.199

SRS Configuration:

vhost defaultVhost {
tcp_nodelay on;
min_latency on;
http_remux {
enabled on;
mount [vhost]/[app]/[stream].flv;
}
hls {
enabled on;
hls_path ./objs/nginx/html/raw;
hls_fragment 10;
hls_window 60;
hls_dispose 30;
hls_wait_keyframe on;
hls_m3u8_file [app]/[stream].m3u8;
hls_ts_file [app]/[stream]-[seq].ts;
hls_cleanup on;
}
publish {
mr off;
firstpkt_timeout 20000;
normal_timeout 7000;
}
play {
mw_latency 100;
gop_cache on;
queue_length 10;
}
http_hooks {
enabled off;
}

Steps to Reproduce the Bug:

Step 1: Start OBS streaming. rtmp://172.24.0.75:1935/live/livestream
Step 2: Start HTTP-FLV playback: ./objs/sb_http_load -c 1000 -r http://172.24.0.75:9080/live/livestream.flv. Retrieve client information through /api/v1/clients?start=0&count=10000.
Step 3: Start HLS playback: ./objs/sb_hls_load -c 1000 -r http://172.24.0.75:9080/raw/live/livestream.m3u8. Retrieve client information through /api/v1/clients?start=0&count=10000.

Comparison of the time it takes for the client information to decrease to 0 between Step 2 and Step 3.

Expected Behavior (Expect)

After stopping the streaming, HLS streaming should be able to reflect the client information in real-time.

Description of your expectation

Please describe what you expect to happen.

TRANS_BY_GPT3

Metadata

Metadata

Assignees

Labels

TransByAITranslated by AI/GPT.Won't fixWe won't fix it.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions