Skip to content

Player repeatedly requesting non-existent http-flv streams can cause fd leak #858

@walkermi

Description

@walkermi
  1. 2.0 release branch, this is the latest code.
  2. Compilation.
    ./configure --full --without-ffmpeg --without-nginx
  3. Configuration file.
    listen 1935; max_connections 8000; srs_log_tank file; srs_log_file ./objs/srs.log; #daemon on; http_api { enabled on; listen 1985; } http_server { enabled on; listen 80; dir /usr/local/srs/objs/hls; } stats { network 0; disk sda sdb xvda xvdb; } vhost __defaultVhost__ { http_remux { enabled on; mount /[app]/[stream].flv; hstrs on; } }
  4. Do not push any stream, repeatedly open and close the HTTP stream using the test player ffplay at http://xxx.xxx.xxx.xxx/app/1.flv.
  5. The number of close_wait will increase each time the player is opened and closed.
  6. Unable to break out of the loop here.
    image

TRANS_BY_GPT3

Metadata

Metadata

Assignees

Labels

TransByAITranslated by AI/GPT.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions