Skip to content
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(s2n-quic-dc): add control_frames fn to control packets #2543

Merged
merged 1 commit into from
Mar 14, 2025

Conversation

camshaft
Copy link
Contributor

@camshaft camshaft commented Mar 14, 2025

Description of changes:

This change moves the control frame parsing logic to the control::decoder module, instead of being done in the sender state. This makes it a bit easier to do ad-hoc debugging to get all of the frames.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Verified

This commit was signed with the committer’s verified signature.
camshaft Cameron Bytheway
@camshaft camshaft marked this pull request as ready for review March 14, 2025 22:04
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
let header = &*self.header;

let mut s = f.debug_struct("control::Packet");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: can we use a better variable name for s?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

generally I do avoid single letter variable names but TBH I'm never really sure what to call the debug structs so i always just use s :D

@camshaft camshaft merged commit 9493d91 into main Mar 14, 2025
126 checks passed
@camshaft camshaft deleted the camshaft/dc-control-packet-debug branch March 14, 2025 23:35
Mark-Simulacrum pushed a commit to Mark-Simulacrum/s2n-quic that referenced this pull request Mar 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants