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

[h3] Adapt datagram API for RFC 9297 (fixes: #420) #428

Merged
merged 1 commit into from
Dec 12, 2023

Conversation

jlaine
Copy link
Contributor

@jlaine jlaine commented Dec 12, 2023

Our HTTP/3 code dealing with datagrams dates back to before RFC 9297 was published. This is reflected in the the use of the flow_id terminology which no longer exists. Update the following interfaces:

  • h3.DatagramReceived now has a stream_id attribute instead of flow_id
  • h3.Connection.send_datagram now has a stream_id argument instead of flow_id

Encoding and decoding to / from quarter stream ID is handled by the connection, so the user does not need to multiply or divide by four.

@jlaine jlaine changed the title [h3] Adapt DatagramReceived event for RFC 9297 (fixes: #420) [h3] Adapt datagram API for RFC 9297 (fixes: #420) Dec 12, 2023
@jlaine jlaine force-pushed the h3-datagram-rfc-9297 branch from ed93ea0 to d993b04 Compare December 12, 2023 14:19
Copy link

codecov bot commented Dec 12, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (cd666b3) 100.00% compared to head (b7d98a5) 100.00%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #428   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           22        22           
  Lines         4687      4691    +4     
=========================================
+ Hits          4687      4691    +4     

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

@jlaine jlaine force-pushed the h3-datagram-rfc-9297 branch 3 times, most recently from c55b9a9 to 56cd6fe Compare December 12, 2023 20:40
Our HTTP/3 code dealing with datagrams dates back to before RFC 9297 was
published. This is reflected in the the use of the `flow_id` terminology
which no longer exists. Update the following interfaces:

- `DatagramReceived` now has a `stream_id` attribute
  instead of `flow_id`.
- `H3Connection.send_datagram` now has a `stream_id` argument
  instead of `flow_id`

Encoding and decoding to / from quarter stream ID is handled by the
connection, so the user does not need to multiply or divide by four.
@jlaine jlaine force-pushed the h3-datagram-rfc-9297 branch from 56cd6fe to b7d98a5 Compare December 12, 2023 21:00
@jlaine jlaine merged commit 005ff4e into aiortc:main Dec 12, 2023
29 checks passed
@jlaine jlaine deleted the h3-datagram-rfc-9297 branch December 12, 2023 21:40
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.

1 participant