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

关于Frame discard问题 #95

Open
Detxie opened this issue Dec 4, 2023 · 3 comments
Open

关于Frame discard问题 #95

Detxie opened this issue Dec 4, 2023 · 3 comments

Comments

@Detxie
Copy link

Detxie commented Dec 4, 2023

一、问题描述:
1.在使用engine时,推的流在engine/subscriber.go里面报stop xxx ,错误的原因为error dsicard;
2.看了下discard在engine/common/frame.go中,有注释--如果写入时还有读取者没有离开则废弃该帧。防止并发读写。

二、疑问
1.之前的流错误都是timeout等,会走hook插件。但是这个错误并没有。
2.关于discard()方法的解释还能有更加全局,详细一点的解析么。plz

@langhuihui
Copy link
Member

这个不属于流错误,单纯是由于订阅者消费卡住引起的,因此这里会终止订阅者

@Detxie
Copy link
Author

Detxie commented Dec 5, 2023

这个不属于流错误,单纯是由于订阅者消费卡住引起的,因此这里会终止订阅者

thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants