We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
咨询的功能模块
咨询的具体内容和问题
注意事项
技术咨询前请先认真阅读readme, wiki,如有必要,您也可以同时搜索已经答复的issue,如果没找到答案才在此提issue
技术咨询不属于bug缺陷,要求用户先star(收藏)本项目,否则会直接关闭issue
The text was updated successfully, but these errors were encountered:
这个没区别,
Sorry, something went wrong.
是不是对方无法处理粘包问题啊?你去掉了头2个字节的rtp长度字段?
是的
这个不是zlm问题 这个本来就是对方用错误的设计干错误的事 TCP是流协议 本身就可能随机粘包或分包 只有小白工程师才会设计不带分隔符或者无长度字段的tcp协议。 这是海康的耻辱 竟然犯这种错误。
不过海康也干过tcp发送缓冲区溢出覆盖的bug 海康搞国标的这群人 应该跟rtsp的不是同一批人 真的很多低级错误
打上这个补丁可以:
Index: src/Rtp/RtpSender.cpp IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/src/Rtp/RtpSender.cpp b/src/Rtp/RtpSender.cpp --- a/src/Rtp/RtpSender.cpp (revision 5a137f8b8ed3aafce7f05dd0b0291554738a14ae) +++ b/src/Rtp/RtpSender.cpp (date 1711080268683) @@ -203,7 +203,7 @@ void RtpSender::onConnect(){ _is_connect = true; //加大发送缓存,防止udp丢包之类的问题 - SockUtil::setSendBuf(_socket_rtp->rawFD(), 4 * 1024 * 1024); + SockUtil::setSendBuf(_socket_rtp->rawFD(), 1500); if (!_args.is_udp) { //关闭tcp no_delay并开启MSG_MORE, 提高发送性能 SockUtil::setNoDelay(_socket_rtp->rawFD(), false);
No branches or pull requests
咨询的功能模块
咨询的具体内容和问题
注意事项
技术咨询前请先认真阅读readme, wiki,如有必要,您也可以同时搜索已经答复的issue,如果没找到答案才在此提issue
技术咨询不属于bug缺陷,要求用户先star(收藏)本项目,否则会直接关闭issue
The text was updated successfully, but these errors were encountered: