Skip to content

Use multiple buffers instead of on single buffer to send messages to a socket. - #18

Merged
nickgarlis merged 3 commits into
mdlayher:mainfrom
Cellebyte:fix/netlink-msg-too-long
May 29, 2026
Merged

nickgarlis merged 3 commits into
mdlayher:mainfrom
Cellebyte:fix/netlink-msg-too-long

Conversation

@Cellebyte

Copy link
Copy Markdown
Contributor

Support for SendmsgBuffers

This needs to merged before

@Cellebyte Cellebyte changed the title Allow support for huge messages to sockets from userland Use multiple buffers instead of on single buffer to send messages to a socket. Feb 26, 2026
Comment thread conn.go Resolved

@SuperQ SuperQ left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This needs a rebase.

@SuperQ

SuperQ commented May 26, 2026

Copy link
Copy Markdown
Collaborator

Ping, can you rebase this against main and apply requested changes?

@Cellebyte
Cellebyte force-pushed the fix/netlink-msg-too-long branch from 1ea9421 to a27e4f7 Compare May 26, 2026 08:54
@Cellebyte

Copy link
Copy Markdown
Contributor Author

Done.

@SuperQ
SuperQ requested a review from nickgarlis May 26, 2026 09:09
Comment thread conn.go Resolved
Cellebyte and others added 3 commits May 29, 2026 20:42
Co-authored-by: Nick Garlis <[email protected]>
Signed-off-by: Marcel Fest <[email protected]>
Signed-off-by: Cellebyte <[email protected]>
@Cellebyte
Cellebyte force-pushed the fix/netlink-msg-too-long branch from dba73a0 to 336c962 Compare May 29, 2026 18:42
@SuperQ
SuperQ requested a review from nickgarlis May 29, 2026 19:23
@nickgarlis
nickgarlis merged commit 06c9aff into mdlayher:main May 29, 2026
6 checks passed
Doridian pushed a commit to FoxDenHome/core that referenced this pull request Oct 3, 2026
This PR contains the following updates:

| Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [github.com/mdlayher/socket](https://github.com/mdlayher/socket) | `v0.5.1` → `v0.7.0` | ![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fmdlayher%2fsocket/v0.7.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fmdlayher%2fsocket/v0.5.1/v0.7.0?slim=true) |

---

### Release Notes

<details>
<summary>mdlayher/socket (github.com/mdlayher/socket)</summary>

### [`v0.7.0`](https://github.com/mdlayher/socket/blob/HEAD/CHANGELOG.md#v070)

[Compare Source](mdlayher/socket@v0.6.1...v0.7.0)

**This is the first release of package socket that only supports Go 1.26+.**

- \[New API] [PR](mdlayher/socket#18):
  add `Conn.SendmsgBuffers` to wrap `sendmsg(2)` with scatter-gather I/O
  support for multiple input buffers.
- \[New API]: add `Conn.SetsockoptBytes` and `Conn.GetsockoptBytes` for
  binary-safe byte-slice socket options on Linux.
- \[Bug Fix]: context cancelation is now honored immediately for blocking
  operations when the context also carries a deadline; previously cancelation
  was not noticed until the deadline expired.
- \[Improvement]: bump build to Go 1.26.0. Package socket now supports Go 1.26
  and Go 1.27, mirroring Go's own release policy.

### [`v0.6.1`](https://github.com/mdlayher/socket/blob/HEAD/CHANGELOG.md#v061)

[Compare Source](mdlayher/socket@v0.6.0...v0.6.1)

- \[Improvement]: update dependencies.

### [`v0.6.0`](https://github.com/mdlayher/socket/blob/HEAD/CHANGELOG.md#v060)

[Compare Source](mdlayher/socket@v0.5.1...v0.6.0)

**This is the first release of package socket that only supports Go 1.25+.**

- \[Bug Fix] [PR](mdlayher/socket#16):
  `socket.Socket` with `Config.NetNS` set now returns the error from socket
  creation inside the target network namespace, rather than silently discarding
  it and returning a nil `Conn`.
- \[Improvement]: bump build to Go 1.25.0.
- \[Improvement]: enable `golangci-lint` in CI.

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xMjEuMyIsInVwZGF0ZWRJblZlciI6IjQ0LjEzMi4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Reviewed-on: https://git.foxden.network/FoxDen/core/pulls/174
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.

3 participants