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

test(quinn-udp): use UdpSocketState::try_send in tests #2049

Merged
merged 1 commit into from
Nov 18, 2024

Conversation

thomaseizinger
Copy link
Contributor

@thomaseizinger thomaseizinger commented Nov 18, 2024

Originally, my theory was that GSO might not actually be working on Android and the tests are not failing because the error doesn't get reported from send. However, this may still be worth merging even though that theory proved false.

Currently, the test suite uses `UdpSocketState::send`. This function
never reports errors (apart from `io::ErrorKind::WouldBlock). Whilst
this may make sense for production, in the tests we actually want to
know whether we hit any IO errors.
@thomaseizinger thomaseizinger marked this pull request as ready for review November 18, 2024 04:35
Copy link
Member

@djc djc left a comment

Choose a reason for hiding this comment

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

Seems reasonable, thanks!

Copy link
Collaborator

@mxinden mxinden left a comment

Choose a reason for hiding this comment

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

🙏

@Ralith Ralith added this pull request to the merge queue Nov 18, 2024
Merged via the queue into quinn-rs:main with commit 98a1050 Nov 18, 2024
17 checks passed
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