Skip to content

API: over 20,000 zombie HLS clients #4471

@thegobot

Description

@thegobot

SRS 6.0.169

curl -s "http://127.0.0.1:1985/api/v1/clients/?count=9999999" more 20 000 clients (real connections about 600)

Why are they frozen?

flv-play about 60 clients
hls-play more 20 000!!!

Example

[
  {
    "id": "848e0y93",
    "vhost": "vid-446nd42",
    "stream": "vid-064n65u",
    "ip": "127.0.0.1",
    "pageUrl": "",
    "swfUrl": "",
    "tcUrl": "http://127.0.0.1/hls",
    "url": "/hls/myr",
    "name": "crys.m3u8",
    "type": "hls-play",
    "publish": false,
    "alive": 92256.96,
    "send_bytes": 1780026,
    "recv_bytes": 328,
    "kbps": {
      "recv_30s": 0,
      "send_30s": 0
    }
  }
]

Reproduce

#!/usr/bin/env bash
bash
while true; do

  ffmpeg -y -i "https://example.com/stream.m3u8" -map 0:v:0  -vframes 1 /tmp/output.png;
  sleep 1;

done

After see
curl -s "http://127.0.0.1:1985/api/v1/clients/?count=10000"

Workarround

hls_ctx off;
hls_ts_ctx off;

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnglishNativeThis issue is conveyed exclusively in English.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions