-
Notifications
You must be signed in to change notification settings - Fork 54
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
Make TransportLayerCC header dynamic #142
Conversation
Codecov Report
@@ Coverage Diff @@
## master #142 +/- ##
==========================================
- Coverage 75.81% 75.74% -0.07%
==========================================
Files 21 21
Lines 2398 2404 +6
==========================================
+ Hits 1818 1821 +3
- Misses 482 485 +3
Partials 98 98
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
81e62ca
to
c8a8735
Compare
Header shouldn't be a property but a method, like the one of every other packet, otherwise it can't be updated automatically when a property changes. Since the padding flag is now set automatically, a test unit which wrongly used the padding flag has been updated.
c8a8735
to
e0df7f5
Compare
I'm not sure if this was the intent, many of the other structs seem to model the over the wire format instead of the most dynamic. So an invalid TWCC packet header can't be modeled with this change. But @mengelbart would be a better decision making, I will defer my judgment to either way :) |
@kevmo314 this library doesn't allow to model invalid packet headers in case of any other packet type. If modeling invalid packet headers is to become a library feature, it should be allowed with all the other packet types too. Furthermore, i don't think that most users want to fill The only information that gets dropped by this PR is the |
Technically I agree with @aler9 because it is what all the other packet types implement, too. But unfortunately, this is a breaking change. See also this comment. I would like to see this merged once we prepare a v2 release of this package. |
@mengelbart we should create a |
Description
Header shouldn't be a property but a method, like the one of every other packet, otherwise it can't be updated automatically when a property changes.
Since the padding flag is now set automatically, a test unit which wrongly expects the padding flag from a packet with no padding has been changed.