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

[quinn-udp] Support vectored sends. (WIP) #2178

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

kixelated
Copy link

@kixelated kixelated commented Mar 19, 2025

Initial attempt for linux. Not sure what to do about Windows.

Initial attempt for linux. Not sure what to do about generic/windows.
@kixelated kixelated changed the title Support vectored sends. [quinn-udp] Support vectored sends. Mar 19, 2025
@@ -90,7 +90,7 @@ pub fn criterion_benchmark(c: &mut Criterion) {
send_state.send((&send_socket).into(), &transmit)
})
.unwrap();
sent += transmit.contents.len();
Copy link
Author

Choose a reason for hiding this comment

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

This is why I renamed contents, otherwise it wouldn't be a breaking change.

udp::Transmit {
destination: t.destination,
ecn: t.ecn.map(udp_ecn),
contents: buffer,
Copy link
Author

Choose a reason for hiding this comment

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

Errors with a reference to a temporary variable if you do:

  buffers: &[IoSlice::new(buffer)],

@kixelated kixelated changed the title [quinn-udp] Support vectored sends. [quinn-udp] Support vectored sends. (WIP) Mar 19, 2025
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