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

http3: pass tracing ID instead of quic.Connection to stream hijackers #4401

Merged
merged 1 commit into from
Apr 2, 2024

Conversation

marten-seemann
Copy link
Member

@marten-seemann marten-seemann commented Apr 1, 2024

Depends on #4400.

The stream hijackers only need to be able to associate the stream with the underlying QUIC connection. They are not supposed to call any functions on the quic.Connection. As such, the better API is to just pass them a unique identifier.

This fixes a problem in webtransport-go introduced by #4389, where we're using a HTTP/3 connection, which, although satisfying the quic.Connection interface, led to a type confusing.

Copy link

codecov bot commented Apr 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.92%. Comparing base (27a06f3) to head (11e0993).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4401      +/-   ##
==========================================
+ Coverage   84.88%   84.92%   +0.04%     
==========================================
  Files         152      152              
  Lines       14342    14357      +15     
==========================================
+ Hits        12174    12192      +18     
+ Misses       1669     1666       -3     
  Partials      499      499              

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

The stream hijackers only need to be able to associate the stream with
the underlying QUIC connection. They are not supposed to call any
functions on the quic.Connection. As such, the better API is to just
pass them a unique identifier.
@marten-seemann marten-seemann force-pushed the http3-hijackers-connection-tracing-id branch from 0d62a15 to 11e0993 Compare April 2, 2024 04:10
@marten-seemann marten-seemann changed the base branch from connection-tracing-id to master April 2, 2024 04:10
@marten-seemann marten-seemann merged commit 183d42a into master Apr 2, 2024
34 checks passed
@marten-seemann marten-seemann deleted the http3-hijackers-connection-tracing-id branch April 2, 2024 04:24
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

1 participant