-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
RtmpPlayer多次收到error,异常退出 #22
Comments
有没有更详细的错误日志截图? |
复现步骤:成功播放流后断开网络。
例如socket异常后,{Rtsp/RTMP}Player回调teardown接口,terardown函数调用TcpClient::alive来判断socket是否存活,而sock重置之前alive返回恒为true。我临时将onErr置后可以暂时解决问题,但没有测试对其它地方的影响
|
@xiongziliang 这个报错在580行左右,代码由于我加过log所以行数不是特别精准了 |
你好 这个bug我已经通过更新ZLToolKit解决 我通过在onErr事件触发前closeSocket,这样发送数据时就不会再触发onErr事件事件了 我已经通过修改代码的方式重现了 broken pipe这种情况,新代码不在会有这个bug了 谢谢对本项目的支持! |
void RtmpPlayer::onPlayResult_l(const SockException &ex) {
这个函数在网络差的情况下连续被调用收到ex时候:
broken pipe,多次打印后异常fault退出,看了一下应该是多次调用shutdown或者teardown导致的
The text was updated successfully, but these errors were encountered: