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

feat(bin): enable Firefox to use quinn-udp through neqo-udp #1920

Merged
merged 20 commits into from
Jul 3, 2024

Conversation

mxinden
Copy link
Collaborator

@mxinden mxinden commented Jun 7, 2024

  • Needed for:
  • Moves UDP related logic into new neqo-udp crate. Firefox does not need neqo-server, neqo-client, nor any of its dependencies. A new crate enforces none of this leaking into Firefox.
  • Allow UDP Socket to be used both with tokio::net::UdpSocket (for neqo-client, neqo-server, mozilla-central's http3server) and std::os::fd::BorrowedFd (std::os::windows::io::BorrowedSocket on Windows). The latter allows neqo-glue to use neqo-udp with a UDP socket managed by NSPR.

Copy link

github-actions bot commented Jun 7, 2024

Failed Interop Tests

QUIC Interop Runner, client vs. server

All results

Succeeded Interop Tests

QUIC Interop Runner, client vs. server

Unsupported Interop Tests

QUIC Interop Runner, client vs. server

Copy link

github-actions bot commented Jun 7, 2024

Firefox builds for this PR

The following builds are available for testing. Crossed-out builds did not succeed.

@mxinden mxinden changed the title feat(bin): enable Firefox to use quinn-udp through neqo-bin feat(bin): enable Firefox to use quinn-udp through neqo-udp Jun 14, 2024
Copy link

codecov bot commented Jun 14, 2024

Codecov Report

Attention: Patch coverage is 83.33333% with 14 lines in your changes missing coverage. Please review.

Project coverage is 94.78%. Comparing base (e2c37a9) to head (34fb3ed).
Report is 2 commits behind head on main.

Files Patch % Lines
neqo-udp/src/lib.rs 83.33% 14 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1920      +/-   ##
==========================================
- Coverage   94.79%   94.78%   -0.02%     
==========================================
  Files         110      111       +1     
  Lines       35722    35896     +174     
==========================================
+ Hits        33864    34024     +160     
- Misses       1858     1872      +14     

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

@mxinden mxinden marked this pull request as ready for review June 14, 2024 11:51
Copy link
Collaborator

@KershawChang KershawChang left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@martinthomson , @larseggert , could you also review this PR?
Thanks.

neqo-common/src/log.rs Outdated Show resolved Hide resolved
neqo-udp/Cargo.toml Outdated Show resolved Hide resolved
neqo-udp/src/lib.rs Show resolved Hide resolved
neqo-udp/src/lib.rs Outdated Show resolved Hide resolved
neqo-udp/src/lib.rs Outdated Show resolved Hide resolved
neqo-udp/src/lib.rs Outdated Show resolved Hide resolved
Copy link
Member

@martinthomson martinthomson left a comment

Choose a reason for hiding this comment

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

LGTM, with nits.

neqo-udp/Cargo.toml Outdated Show resolved Hide resolved
neqo-udp/src/lib.rs Show resolved Hide resolved
neqo-udp/src/lib.rs Outdated Show resolved Hide resolved
neqo-udp/src/lib.rs Outdated Show resolved Hide resolved
neqo-udp/src/lib.rs Outdated Show resolved Hide resolved
neqo-udp/src/lib.rs Outdated Show resolved Hide resolved
neqo-udp/src/lib.rs Outdated Show resolved Hide resolved
mxinden added a commit to mxinden/neqo that referenced this pull request Jun 25, 2024
mozilla#1568 introduced TTL information to
datagrams. On the input path it would take the ttl information, but not act on
it. On the output path it would set only "the default TTL on many OSes".

https://github.com/mozilla/neqo/blob/66504908e5fa070a8a5fa67d8b5a201d2c9a5cc5/neqo-transport/src/path.rs#L576

This commit removes the ttl information from `Datagram`, thus reverting a subset
of mozilla#1568.

This is partially motivated by mozilla#1920,
introducing `quinn-udp` as the IO library of choice, which does not support
reading and writing TTL.

See also discussion in
mozilla#1920 (comment).
mxinden added a commit to mxinden/neqo that referenced this pull request Jun 25, 2024
mozilla#1568 introduced TTL information to
datagrams. On the input path it would take the ttl information, but not act on
it. On the output path it would set only "the default TTL on many OSes".

https://github.com/mozilla/neqo/blob/66504908e5fa070a8a5fa67d8b5a201d2c9a5cc5/neqo-transport/src/path.rs#L576

This commit removes the ttl information from `Datagram`, thus reverting a subset
of mozilla#1568.

This is partially motivated by mozilla#1920,
introducing `quinn-udp` as the IO library of choice, which does not support
reading and writing TTL.

See also discussion in
mozilla#1920 (comment).
github-merge-queue bot pushed a commit that referenced this pull request Jun 26, 2024
#1568 introduced TTL information to
datagrams. On the input path it would take the ttl information, but not act on
it. On the output path it would set only "the default TTL on many OSes".

https://github.com/mozilla/neqo/blob/66504908e5fa070a8a5fa67d8b5a201d2c9a5cc5/neqo-transport/src/path.rs#L576

This commit removes the ttl information from `Datagram`, thus reverting a subset
of #1568.

This is partially motivated by #1920,
introducing `quinn-udp` as the IO library of choice, which does not support
reading and writing TTL.

See also discussion in
#1920 (comment).
@larseggert larseggert enabled auto-merge July 1, 2024 18:43
auto-merge was automatically disabled July 2, 2024 09:58

Head branch was pushed to by a user without write access

@larseggert larseggert enabled auto-merge July 2, 2024 09:59
@larseggert larseggert added this pull request to the merge queue Jul 3, 2024
Merged via the queue into mozilla:main with commit 780daf8 Jul 3, 2024
53 of 55 checks passed
This was referenced Jul 3, 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.

4 participants