The Wayback Machine - https://web.archive.org/web/20220411031707/https://github.com/ossrs/srs/issues/2937
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebRTC: 回调踢流,cpu一直处于98%的状态 #2937

Open
LUOQING1994 opened this issue Feb 24, 2022 · 1 comment
Open

WebRTC: 回调踢流,cpu一直处于98%的状态 #2937

LUOQING1994 opened this issue Feb 24, 2022 · 1 comment
Assignees
Labels
API good first issue
Milestone

Comments

@LUOQING1994
Copy link

@LUOQING1994 LUOQING1994 commented Feb 24, 2022

描述(Description)

描述你遇到了什么问题

用户点播视频,PC端使用WebRtc播放,当用户关闭视频后,云服务器利用回调函数,主动踢掉用户播放的视频流,该过程进行十几次后,云服务器的CPU一直处于98%的状态,即使没有任何推流操作,cpu也无法得到释放。

  1. SRS版本(Version): v 4.0.198

重现(Replay)

重现Bug的步骤(How to replay bug?)

  1. 本地推流到SRS云服务器
  2. PC端成功播放视频后,主动关闭视频,云服务器使用回调函数,进行主动踢流
  3. 重复十几次后,CPU处于98%的状态

期望行为(Expect)

描述你期望发生的事情(Please describe your expectation)

频繁推流、拉流、踢流后,cpu处于正常状态

@winlinvip winlinvip added API good first issue labels Feb 25, 2022
@winlinvip winlinvip added this to the 4.0 milestone Feb 25, 2022
@winlinvip
Copy link
Member

@winlinvip winlinvip commented Feb 25, 2022

感谢反馈,麻烦试试最新的 4.0 版本是否能重现这个问题。

另外,你这里描述没看懂主动关闭视频,云服务器使用回调函数,进行主动踢流

具体回调就是HTTP回调你的服务,而踢流是你调用SRS的API踢流,这两个不是一个API。

还有,请加上配置,请不要省略信息,否则会关闭这个Issue。

@winlinvip winlinvip changed the title cpu一直处于98%的状态 WebRTC: 回调踢流,cpu一直处于98%的状态 Feb 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API good first issue
3 participants