Skip to content

Commit

Permalink
Merge #1744
Browse files Browse the repository at this point in the history
1744: reimplement sendmmsg/recvmmsg with better API r=rtzoeller a=pacak

Motivation is explained in #1602, new version allows to receive data without performing allocations inside the receive loop and to use received data without extra copying.

This pull request contains a breaking change to API `recvmmsg` (obviously) and also affects `recvmsg` - new version does not set length of control message buffer if one is passed. Later change can be avoided with a bit more copy-paste.

Fixes #1602

Co-authored-by: Michael Baikov <[email protected]>
  • Loading branch information
bors[bot] and pacak authored Aug 12, 2022
2 parents 5252f7e + 5b87fb4 commit d773e2a
Show file tree
Hide file tree
Showing 3 changed files with 442 additions and 223 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ This project adheres to [Semantic Versioning](https://semver.org/).

### Changed

- Reimplemented sendmmsg/recvmmsg to avoid allocations and with better API
(#[1744](https://github.com/nix-rust/nix/pull/1744))

- Rewrote the aio module. The new module:
* Does more type checking at compile time rather than runtime.
* Gives the caller control over whether and when to `Box` an aio operation.
Expand Down
Loading

0 comments on commit d773e2a

Please sign in to comment.