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

fix(s2n-quic-dc): handle possible secret control packet correctly #2280

Merged
merged 1 commit into from
Jul 23, 2024

Conversation

WesleyRosenblum
Copy link
Contributor

Description of changes:

Currently, we only invoke on_possible_secret_control_packet if the datagram payload was not decoded as a valid packet. Since dc packets are formatted as valid short header packets, this meant the on_possible_secret_control_packet function was never called. This change moves the call to ``on_possible_secret_control_packet` after it is determined the packet does not belong to any known connection.

Testing:

I added new integration tests to confirm on_possible_secret_control_packet is called. I also verified the new tests fail with the existing code.

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

@WesleyRosenblum WesleyRosenblum merged commit 61cfc7a into main Jul 23, 2024
128 of 129 checks passed
@WesleyRosenblum WesleyRosenblum deleted the WesleyRosenblum/possiblesecret branch July 23, 2024 00:01
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.

2 participants