-
-
Notifications
You must be signed in to change notification settings - Fork 207
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
RTMP 推送设备断电后,超时逻辑未能正确执行 #67
Labels
bug
Something isn't working
Comments
ningnao
added a commit
to ningnao/xiu
that referenced
this issue
Oct 26, 2023
我尝试对这个问题进行修复并提交了PR,不知道这样处理是否妥当 |
这个函数之前改过一版,commit,记不太清楚问题是如何复现的了,但看来还是有问题的,我这边也再好好测测。 |
我看了这版代码,read_timeout方法中对超时的处理似乎没有问题,但在read_parse_chunks方法中实际调用的read方法,并没有调用read_timeout,我想这应该是出现问题的原因 |
嗯嗯,有可能,测试了两种case,这里也记录一下:
self.stream.next().await 这句话没有pending,而是直接返回了None |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
XIU version
master(65c8def)
Describe the bug
RTMP 推送设备断电后,超时逻辑未能正确执行
排查了一下原因,设备断电后程序阻塞在了这行代码
因此在
read_timeout()
方法中的超时逻辑未能正确执行,当设备恢复重连的时候,旧链接未被关闭,出现以下错误另外在
read_timeout()
方法中处理超时逻辑会将read()
方法中的异常信息覆盖掉,这在排查问题的过程中造成了一定的困扰The text was updated successfully, but these errors were encountered: