winshining / nginx-http-flv-module

A media streaming server based on nginx-rtmp-module. In addtion to the features nginx-rtmp-module provides, HTTP-FLV, GOP cache, VHosts (one IP for multi domain names) and JSON style statistics are supported now.
BSD 2-Clause "Simplified" License
2.72k stars 567 forks source link

[bug] stat页面偶尔会出现已经销毁的live streams #181

Closed craneding closed 2 years ago

craneding commented 3 years ago

效果如下图:

29BB8546-056F-4A0B-A710-10DA3513BAC5

问题:

出现了clients是0的live streams,然后点击live streams的连接,一直无反应,刷新页面一直不会清除,nginx reload后就恢复了。该现象已经出现过多次。

相关版本

  1. nginx 1.18.0
  2. nginx-http-flv-module 1.2.8
  3. gcc 4.4.7

    stat配置

    location /stat {
        rtmp_stat            all;
        allow                127.0.0.1;
        rtmp_stat_stylesheet stat.xsl;
        add_header           Access-Control-Allow-Origin *;
    }
    
    location /stat.xsl {
        root                 html;
    }
Mactarvish commented 2 years ago

我遇到了类似的问题,只要在nginx中配置了stat页面,uwsgi就无法正常返回页面中的元素,注释掉就正常了

winshining commented 2 years ago

Fixed, please try the latest commit.