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

Factor out IncomingToken #2094

Merged
merged 2 commits into from
Dec 20, 2024
Merged

Factor out IncomingToken #2094

merged 2 commits into from
Dec 20, 2024

Conversation

gretchenfrage
Copy link
Collaborator

@gretchenfrage gretchenfrage commented Dec 16, 2024

Improved decoupling between modules, makes code flow easier to understand IMO, and sets us up to have an easier time adding more internal variants to RetryToken, for NEW_TOKEN stuff.

Factors out the retry_src_cid and orig_dst_cid fields of Incoming into
a new token::IncomingToken struct.
Moves more logic from Endpoint::handle_first_packet to the proto::token
module. Due to improved decoupling between modules, Token::from_bytes
and ValidationError can now be made private.
@gretchenfrage
Copy link
Collaborator Author

CI fail is due to flake.

@djc djc added this pull request to the merge queue Dec 20, 2024
Merged via the queue into quinn-rs:main with commit afc7d7f Dec 20, 2024
20 checks passed
@djc djc mentioned this pull request Dec 20, 2024
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.

3 participants