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

Implement address validation token for future connections for client #340

Merged
merged 1 commit into from
Dec 12, 2023

Conversation

msoxzw
Copy link
Contributor

@msoxzw msoxzw commented Nov 3, 2022

@codecov
Copy link

codecov bot commented Nov 3, 2022

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (094b01d) 100.00% compared to head (2eedb4c) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #340   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           22        22           
  Lines         4672      4680    +8     
=========================================
+ Hits          4672      4680    +8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -240,6 +251,7 @@ def __init__(
retry_source_connection_id: Optional[bytes] = None,
session_ticket_fetcher: Optional[tls.SessionTicketFetcher] = None,
session_ticket_handler: Optional[tls.SessionTicketHandler] = None,
token_handler: Optional[Callable] = None,
Copy link
Contributor

@jlaine jlaine Nov 16, 2023

Choose a reason for hiding this comment

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

Can we do better than Callable here, as in define a tighter type for the function?

@jlaine jlaine force-pushed the patch-4 branch 2 times, most recently from 20dbe61 to a12f9ec Compare December 12, 2023 11:04
- Add `token` to `QuicConfiguration`.
- Add `token_handler` to `aioquic.asyncio.connect`.

See: https://www.rfc-editor.org/rfc/rfc9000.html#name-address-validation-for-futu

Co-authored-by: Jeremy Lainé <[email protected]>
@jlaine jlaine merged commit 18214db into aiortc:main Dec 12, 2023
29 checks passed
@msoxzw msoxzw deleted the patch-4 branch January 11, 2024 22:07
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