Skip to content

Commit fbdac70

Browse files
bors[bot]pacak
andauthored
Merge #1744
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]>
2 parents 3f637de + d13c2cc commit fbdac70

File tree

3 files changed

+575
-351
lines changed

3 files changed

+575
-351
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ This project adheres to [Semantic Versioning](https://semver.org/).
8585

8686
### Changed
8787

88+
- Reimplemented sendmmsg/recvmmsg to avoid allocations and with better API
89+
(#[1744](https://github.com/nix-rust/nix/pull/1744))
90+
8891
- Rewrote the aio module. The new module:
8992
* Does more type checking at compile time rather than runtime.
9093
* Gives the caller control over whether and when to `Box` an aio operation.

0 commit comments

Comments
 (0)