-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Refactor RTP retransmission buffer in a separate and testable RTC::RetransmissionBuffer class #1023
Conversation
- Fixes #975 - For now just some logs added to diagnose the problem.
worker/include/RTC/RtpStream.hpp
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cosmetic changes in RtpStream.hpp
. Let's avoid those long multi-line comments at the right side of class members.
worker/include/RTC/RtpStreamRecv.hpp
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same. Cosmetic changes in RtpStreamRecv.hpp
. Let's avoid those long multi-line comments at the right side of class members.
worker/include/common.hpp
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cosmetic changes in comments. Ignore.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A separate class.
worker/src/RTC/RtpStreamRecv.cpp
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cosmetic. Ignore.
worker/src/handles/Timer.cpp
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cosmetic. Ignore.
// Limit retransmission buffer max size to 2500 items. | ||
static constexpr size_t RetransmissionBufferMaxItems{ 2500u }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the retransmission buffer max size (passed to RetransmissionBuffer
class as argument in the constructor. In my tests this is good enough.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice refactor 👍
After upgrading to this version, we received a SIGABRT, with this stack trace:
|
@vpalmisano please create a separate issue for this. |
A complete refactor of the retransmission buffer which now is a separate
RetransmissionBuffer
class.